Bugfix: serial power state executed on power-up irrespective of the serial mode selected.

This commit is contained in:
rotorman
2022-04-23 17:01:59 +02:00
parent bd80f7d454
commit fa5b718579
2 changed files with 9 additions and 9 deletions
+2 -2
View File
@@ -243,8 +243,8 @@ class SerialConfigWindow : public FormGroup
new CheckBox(
this, grid.getFieldSlot(1, 0),
[=] { return serialGetPower(port_nr); },
[=](int32_t newValue) {
serialSetPower(port_nr, newValue);
[=](int8_t newValue) {
serialSetPower(port_nr, (bool)newValue);
SET_DIRTY();
}
);