File tree Expand file tree Collapse file tree 1 file changed +9
-8
lines changed
Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -684,15 +684,16 @@ void PPUC::LampTest() {
684684 printf (" \n GI Test\n " );
685685 printf (" =========\n " );
686686
687- for (const auto & lamp : GetLamps ()) {
688- if (lamp.type == LED_TYPE_GI) {
689- printf (" \n Board: %d\n Port: %d\n Number: %d\n Description: %s\n " , lamp.board ,
690- lamp.port , lamp.number , lamp.description .c_str ());
691- SetLampState (lamp.number , 1 );
692- std::this_thread::sleep_for (std::chrono::milliseconds (2000 ));
693- SetLampState (lamp.number , 0 );
694- std::this_thread::sleep_for (std::chrono::milliseconds (1000 ));
687+ for (uint8_t i = 1 ; i <= 8 ; i++) {
688+ if (PLATFORM_WPC != m_platform && i > 1 ) {
689+ break ;
695690 }
691+ printf (" Setting GI String %d to brightness to %d\n " , i, 8 );
692+ m_pRS485Comm->QueueEvent (new Event (EVENT_SOURCE_GI, /* string */ i,
693+ /* full brightness */ 8 ));
694+ std::this_thread::sleep_for (std::chrono::milliseconds (5000 ));
695+ m_pRS485Comm->QueueEvent (new Event (EVENT_SOURCE_GI, /* string */ i, 0 ));
696+ std::this_thread::sleep_for (std::chrono::milliseconds (1000 ));
696697 }
697698}
698699
You can’t perform that action at this time.
0 commit comments