File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -30,21 +30,14 @@ void loop()
3030{
3131 static Menu singleMenu (board::getDisplay ());
3232 static Presenter presenter (singleMenu, board::getStatusIndicators ());
33- static auto &keypad = board::getKeypad ();
34- static ProcessHmiInputs processHmiInputs (presenter, keypad);
33+ static ProcessHmiInputs processHmiInputs (presenter, board::getKeypad ());
3534
3635 for (auto task : device::tasks)
3736 {
3837 serial_port::cout << task.second .getLabel () << " : " << std::boolalpha << task.second .isRunning ()
3938 << std::noboolalpha << " with " << task.second .getRecordedDuration ().count () << " s" << std::endl;
4039 }
4140 serial_port::cout << " _\r " << std::endl;
42- serial_port::cout << " Buttons: \t " ;
43- for (std::size_t i = static_cast <std::size_t >(KeyId::LEFT); i <= static_cast <std::size_t >(KeyId::TASK4); i++)
44- {
45- serial_port::cout << std::boolalpha << keypad.isKeyPressed (static_cast <KeyId>(i)) << std::noboolalpha << " \t |" ;
46- }
47- serial_port::cout << std::endl;
4841
4942 std::this_thread::yield ();
5043 using namespace std ::chrono_literals;
You can’t perform that action at this time.
0 commit comments