Commit 78af2d16 authored by Christian Speckner's avatar Christian Speckner
Browse files

Fix genesis widget.

parent c0a7c667
Pipeline #19176 passed with stages
in 15 minutes and 55 seconds
......@@ -86,7 +86,7 @@ void GenesisWidget::loadConfig()
myPins[kJBbtn]->setState(!getPin(ourPinNo[kJBbtn]));
myPins[kJCbtn]->setState(
getPin(Controller::AnalogPin::Five) == AnalogReadout::disconnect());
getPin(Controller::AnalogPin::Five) == AnalogReadout::connectToGround());
}
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
......@@ -106,7 +106,7 @@ void GenesisWidget::handleCommand(
break;
case kJCbtn:
setPin(Controller::AnalogPin::Five,
myPins[id]->getState() ? AnalogReadout::disconnect() :
myPins[id]->getState() ? AnalogReadout::connectToGround() :
AnalogReadout::connectToVcc());
break;
default:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment