@@ -146,7 +146,7 @@ void beginDisplay(TwoWire *i2cBus)
146
146
oled->setVcomDeselect (kOLEDMicroVCOM );
147
147
}
148
148
149
- if (present.display_type == DISPLAY_128x64 || present. display_type == DISPLAY_128x64_INVERTED )
149
+ if (present.display_type == DISPLAY_128x64)
150
150
{
151
151
i2cAddress = kOLEDMicroDefaultAddress ;
152
152
@@ -182,7 +182,7 @@ void beginDisplay(TwoWire *i2cBus)
182
182
183
183
systemPrintln (" Display started" );
184
184
185
- if (present.display_type == DISPLAY_128x64_INVERTED )
185
+ if (present.displayInverted == true )
186
186
{
187
187
oled->flipVertical (true );
188
188
oled->flipHorizontal (true );
@@ -377,7 +377,8 @@ void displayUpdate()
377
377
break ;
378
378
379
379
case (STATE_NTPSERVER_NOT_STARTED):
380
- case (STATE_NTPSERVER_NO_SYNC): {
380
+ case (STATE_NTPSERVER_NO_SYNC):
381
+ {
381
382
paintClock (&iconPropertyList, true ); // Blink
382
383
displaySivVsOpenShort (&iconPropertyList);
383
384
@@ -398,7 +399,8 @@ void displayUpdate()
398
399
}
399
400
break ;
400
401
401
- case (STATE_NTPSERVER_SYNC): {
402
+ case (STATE_NTPSERVER_SYNC):
403
+ {
402
404
paintClock (&iconPropertyList, false ); // No blink
403
405
displaySivVsOpenShort (&iconPropertyList);
404
406
paintLogging (&iconPropertyList, false , true ); // No pulse, NTP
@@ -745,7 +747,7 @@ void setRadioIcons(std::vector<iconPropertyBlinking> *iconList)
745
747
}
746
748
}
747
749
}
748
- else if (present.display_type == DISPLAY_128x64 || present. display_type == DISPLAY_128x64_INVERTED )
750
+ else if (present.display_type == DISPLAY_128x64)
749
751
{
750
752
paintMACAddress4digit (0 , 3 ); // Columns 0 to 22
751
753
@@ -914,19 +916,22 @@ void setRadioIcons(std::vector<iconPropertyBlinking> *iconList)
914
916
paintDynamicModel (iconList);
915
917
break ;
916
918
case (STATE_BASE_TEMP_SETTLE):
917
- case (STATE_BASE_TEMP_SURVEY_STARTED): {
919
+ case (STATE_BASE_TEMP_SURVEY_STARTED):
920
+ {
918
921
prop.duty = 0b00001111 ;
919
922
prop.icon = BaseTemporaryProperties.iconDisplay [present.display_type ];
920
923
iconList->push_back (prop);
921
924
}
922
925
break ;
923
- case (STATE_BASE_TEMP_TRANSMITTING): {
926
+ case (STATE_BASE_TEMP_TRANSMITTING):
927
+ {
924
928
prop.duty = 0b11111111 ;
925
929
prop.icon = BaseTemporaryProperties.iconDisplay [present.display_type ];
926
930
iconList->push_back (prop);
927
931
}
928
932
break ;
929
- case (STATE_BASE_FIXED_TRANSMITTING): {
933
+ case (STATE_BASE_FIXED_TRANSMITTING):
934
+ {
930
935
prop.duty = 0b11111111 ;
931
936
prop.icon = BaseFixedProperties.iconDisplay [present.display_type ];
932
937
iconList->push_back (prop);
@@ -1264,21 +1269,24 @@ void setModeIcon(std::vector<iconPropertyBlinking> *iconList)
1264
1269
case (STATE_BASE_NOT_STARTED):
1265
1270
// Do nothing. Static display shown during state change.
1266
1271
break ;
1267
- case (STATE_BASE_TEMP_SETTLE): {
1272
+ case (STATE_BASE_TEMP_SETTLE):
1273
+ {
1268
1274
iconPropertyBlinking prop;
1269
1275
prop.duty = 0b00001111 ;
1270
1276
prop.icon = BaseTemporaryProperties.iconDisplay [present.display_type ];
1271
1277
iconList->push_back (prop);
1272
1278
}
1273
1279
break ;
1274
- case (STATE_BASE_TEMP_SURVEY_STARTED): {
1280
+ case (STATE_BASE_TEMP_SURVEY_STARTED):
1281
+ {
1275
1282
iconPropertyBlinking prop;
1276
1283
prop.duty = 0b00001111 ;
1277
1284
prop.icon = BaseTemporaryProperties.iconDisplay [present.display_type ];
1278
1285
iconList->push_back (prop);
1279
1286
}
1280
1287
break ;
1281
- case (STATE_BASE_TEMP_TRANSMITTING): {
1288
+ case (STATE_BASE_TEMP_TRANSMITTING):
1289
+ {
1282
1290
iconPropertyBlinking prop;
1283
1291
prop.duty = 0b11111111 ;
1284
1292
prop.icon = BaseTemporaryProperties.iconDisplay [present.display_type ];
@@ -1288,7 +1296,8 @@ void setModeIcon(std::vector<iconPropertyBlinking> *iconList)
1288
1296
case (STATE_BASE_FIXED_NOT_STARTED):
1289
1297
// Do nothing. Static display shown during state change.
1290
1298
break ;
1291
- case (STATE_BASE_FIXED_TRANSMITTING): {
1299
+ case (STATE_BASE_FIXED_TRANSMITTING):
1300
+ {
1292
1301
iconPropertyBlinking prop;
1293
1302
prop.duty = 0b11111111 ;
1294
1303
prop.icon = BaseFixedProperties.iconDisplay [present.display_type ];
@@ -1615,7 +1624,7 @@ void displayBaseSiv(std::vector<iconPropertyBlinking> *iconList)
1615
1624
{
1616
1625
// Display SIV during Base - but only on 128x64 displays. 64x48 has no room.
1617
1626
// No support for short / open.
1618
- if (present.display_type == DISPLAY_128x64 || present. display_type == DISPLAY_128x64_INVERTED )
1627
+ if (present.display_type == DISPLAY_128x64)
1619
1628
{
1620
1629
displayCoords textCoords = paintSIVIcon (iconList, &BaseSIVIconProperties, 0b11111111 );
1621
1630
paintSIVText (textCoords);
@@ -2025,7 +2034,7 @@ void displayFullIPAddress(std::vector<iconPropertyBlinking> *iconList) // Bottom
2025
2034
static NetPriority_t previousPriority;
2026
2035
2027
2036
// Max width: 15*6 = 90 pixels (6 pixels per character, nnn.nnn.nnn.nnn)
2028
- if (present.display_type == DISPLAY_128x64 || present. display_type == DISPLAY_128x64_INVERTED )
2037
+ if (present.display_type == DISPLAY_128x64)
2029
2038
{
2030
2039
char myAddress[16 ];
2031
2040
@@ -2663,7 +2672,7 @@ void paintDisplaySetup()
2663
2672
constructSetupDisplay (&setupButtons); // Construct the vector (linked list) of buttons
2664
2673
2665
2674
uint8_t maxButtons =
2666
- ((present.display_type == DISPLAY_128x64 || present. display_type == DISPLAY_128x64_INVERTED ) ? 5 : 4 );
2675
+ ((present.display_type == DISPLAY_128x64) ? 5 : 4 );
2667
2676
2668
2677
uint8_t printedButtons = 0 ;
2669
2678
@@ -2679,7 +2688,7 @@ void paintDisplaySetup()
2679
2688
if (it->newState == STATE_PROFILE)
2680
2689
{
2681
2690
int nameWidth =
2682
- ((present.display_type == DISPLAY_128x64 || present. display_type == DISPLAY_128x64_INVERTED )
2691
+ ((present.display_type == DISPLAY_128x64)
2683
2692
? 17
2684
2693
: 9 );
2685
2694
char miniProfileName[nameWidth] = {0 };
@@ -2847,7 +2856,7 @@ void paintResets()
2847
2856
else
2848
2857
oled->print (settings.resetCount + bufferOverruns);
2849
2858
}
2850
- else // if (present.display_type == DISPLAY_128x64 || present.display_type == DISPLAY_128x64_INVERTED )
2859
+ else // if (present.display_type == DISPLAY_128x64)
2851
2860
{
2852
2861
oled->setFont (QW_FONT_5X7); // Small font
2853
2862
oled->setCursor (0 , oled->getHeight () - 10 ); // x, y
0 commit comments