Changeset 11196
- Timestamp:
- 06/27/11 15:03:03 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/gui/FactGui.h
r11185 r11196 1054 1054 for (int i=0; i<40; i++) 1055 1055 { 1056 switch (ptr[i]) 1056 const uint8_t stat1 = ptr[i]&3; 1057 const uint8_t stat2 = ptr[i]>>3; 1058 1059 if (stat1==0 && stat2==0) 1057 1060 { 1058 case 0: SetLedColor(fFadLED[i], kLedGray, d.time); break; 1059 case 9: SetLedColor(fFadLED[i], kLedGreen, d.time); break; 1060 default: SetLedColor(fFadLED[i], kLedOrange, d.time); 1061 SetLedColor(fFadLED[i], kLedGray, d.time); 1062 continue; 1061 1063 } 1064 if (stat1==2 && stat2==8) 1065 { 1066 SetLedColor(fFadLED[i], kLedGreen, d.time); 1067 continue; 1068 } 1069 1070 if (stat1==1 && stat2==1) 1071 SetLedColor(fFadLED[i], kLedRed, d.time); 1072 else 1073 SetLedColor(fFadLED[i], kLedOrange, d.time); 1062 1074 } 1063 1075 … … 1066 1078 fFadConnections.assign(ptr, ptr+40); 1067 1079 } 1068 1080 /* 1069 1081 template<typename T> 1070 1082 bool CheckConsistency(const T *v) 1071 1083 { 1072 1084 for (int i=1; i<40; i++) 1073 if (fFadConnections[i]== 9&& v[i]!=v[0])1085 if (fFadConnections[i]==10 && v[i]!=v[0]) 1074 1086 return false; 1075 1087 … … 1086 1098 return T(); 1087 1099 } 1088 1100 */ 1089 1101 void handleFadFwVersion(const DimData &d) 1090 1102 {
Note:
See TracChangeset
for help on using the changeset viewer.