diff --git a/src/hmi.cpp b/src/hmi.cpp index 1541c12..0aaff5f 100644 --- a/src/hmi.cpp +++ b/src/hmi.cpp @@ -60,14 +60,11 @@ private: }; -SwitchPort2 switch1; -SwitchPort2 switch2; -SwitchPort2 switch3; +SwitchPort2 switch1 = SwitchPort2(BIT0); +SwitchPort2 switch2 = SwitchPort2(BIT1); +SwitchPort2 switch3 = SwitchPort2(BIT2); void hmiInit() { - switch1 = SwitchPort2(BIT0); - switch2 = SwitchPort2(BIT1); - switch3 = SwitchPort2(BIT2); } void hmiExec() {