@@ -1509,7 +1509,7 @@ void paintSystemTest()
15091509 systemTestDisplayNumber %= 2 ;
15101510 }
15111511
1512- if (systemTestDisplayNumber == 1 )
1512+ if (systemTestDisplayNumber == 1 || productVariant != RTK_FACET_LBAND )
15131513 {
15141514 int xOffset = 2 ;
15151515 int yOffset = 2 ;
@@ -1627,76 +1627,41 @@ void paintSystemTest()
16271627 oled.print (F (" OK" ));
16281628 } // End display 1
16291629
1630- if (systemTestDisplayNumber == 0 )
1630+ if (productVariant == RTK_FACET_LBAND )
16311631 {
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 ;
16451636
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 ;
16561638
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
16631640
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
16691642
1670- if (powerButtonTestPassed == false && powerBtn->isPressed () == true )
1671- powerButtonTestPassed = true ;
1643+ oled.setFont (QW_FONT_5X7); // Set font to smallest
16721644
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 )
16761652 oled.print (F (" FAIL" ));
16771653 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" ));
16891655
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 " ));
16941660 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+
17001665 }
17011666}
17021667
0 commit comments