@@ -1509,7 +1509,7 @@ void paintSystemTest()
1509
1509
systemTestDisplayNumber %= 2 ;
1510
1510
}
1511
1511
1512
- if (systemTestDisplayNumber == 1 )
1512
+ if (systemTestDisplayNumber == 1 || productVariant != RTK_FACET_LBAND )
1513
1513
{
1514
1514
int xOffset = 2 ;
1515
1515
int yOffset = 2 ;
@@ -1627,76 +1627,41 @@ void paintSystemTest()
1627
1627
oled.print (F (" OK" ));
1628
1628
} // End display 1
1629
1629
1630
- if (systemTestDisplayNumber == 0 )
1630
+ if (productVariant == RTK_FACET_LBAND )
1631
1631
{
1632
- int xOffset = 2 ;
1633
- int yOffset = 2 ;
1634
-
1635
- int charHeight = 7 ;
1636
-
1637
- char macAddress[5 ];
1638
- sprintf (macAddress, " %02X%02X" , unitMACAddress[4 ], unitMACAddress[5 ]);
1639
-
1640
- drawFrame (); // Outside edge
1641
-
1642
- // Test ZED Firmware, L-Band, Buttons
1643
-
1644
- oled.setFont (QW_FONT_5X7); // Set font to smallest
1632
+ if (systemTestDisplayNumber == 0 )
1633
+ {
1634
+ int xOffset = 2 ;
1635
+ int yOffset = 2 ;
1645
1636
1646
- oled.setCursor (xOffset, yOffset); // x, y
1647
- oled.print (F (" ZED Firm:" ));
1648
- oled.setCursor (xOffset, yOffset + (1 * charHeight) ); // x, y
1649
- oled.print (" " );
1650
- oled.print (zedFirmwareVersionInt);
1651
- oled.print (F (" -" ));
1652
- if (zedFirmwareVersionInt < 130 )
1653
- oled.print (F (" FAIL" ));
1654
- else
1655
- oled.print (F (" OK" ));
1637
+ int charHeight = 7 ;
1656
1638
1657
- oled.setCursor (xOffset, yOffset + (2 * charHeight) ); // x, y
1658
- oled.print (F (" LBand:" ));
1659
- if (online.lband == true )
1660
- oled.print (F (" OK" ));
1661
- else
1662
- oled.print (F (" FAIL" ));
1639
+ drawFrame (); // Outside edge
1663
1640
1664
- oled.setCursor (xOffset, yOffset + (3 * charHeight) ); // x, y
1665
- if (powerBtn != NULL )
1666
- {
1667
- powerBtn->read ();
1668
- oled.print (F (" Power:" ));
1641
+ // Test ZED Firmware, L-Band
1669
1642
1670
- if (powerButtonTestPassed == false && powerBtn->isPressed () == true )
1671
- powerButtonTestPassed = true ;
1643
+ oled.setFont (QW_FONT_5X7); // Set font to smallest
1672
1644
1673
- if (powerBtn->isPressed () == true )
1674
- oled.print (F (" On" ));
1675
- else if (powerButtonTestPassed == false )
1645
+ oled.setCursor (xOffset, yOffset); // x, y
1646
+ oled.print (F (" ZED Firm:" ));
1647
+ oled.setCursor (xOffset, yOffset + (1 * charHeight) ); // x, y
1648
+ oled.print (" " );
1649
+ oled.print (zedFirmwareVersionInt);
1650
+ oled.print (F (" -" ));
1651
+ if (zedFirmwareVersionInt < 130 )
1676
1652
oled.print (F (" FAIL" ));
1677
1653
else
1678
- oled.print (F (" PASS" ));
1679
- }
1680
-
1681
- oled.setCursor (xOffset, yOffset + (4 * charHeight) ); // x, y
1682
- if (setupBtn != NULL )
1683
- {
1684
- setupBtn->read ();
1685
- oled.print (F (" Setup:" ));
1686
-
1687
- if (setupButtonTestPassed == false && setupBtn->isPressed () == true )
1688
- setupButtonTestPassed = true ;
1654
+ oled.print (F (" OK" ));
1689
1655
1690
- if (setupBtn-> isPressed () == true )
1691
- oled.print (F (" On " ));
1692
- else if (setupButtonTestPassed == false )
1693
- oled.print (F (" FAIL " ));
1656
+ oled. setCursor (xOffset, yOffset + ( 2 * charHeight) ); // x, y
1657
+ oled.print (F (" LBand: " ));
1658
+ if (online. lband == true )
1659
+ oled.print (F (" OK " ));
1694
1660
else
1695
- oled.print (F (" PASS" ));
1696
- }
1697
-
1698
-
1699
- } // End display 0
1661
+ oled.print (F (" FAIL" ));
1662
+ } // End display 0
1663
+ } // End Facet L-Band testing
1664
+
1700
1665
}
1701
1666
}
1702
1667
0 commit comments