From 78af2d164e143866beccd7b5d021a22b83ea4794 Mon Sep 17 00:00:00 2001 From: Christian Speckner Date: Mon, 5 Apr 2021 20:31:36 +0200 Subject: [PATCH] Fix genesis widget. --- src/debugger/gui/GenesisWidget.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/debugger/gui/GenesisWidget.cxx b/src/debugger/gui/GenesisWidget.cxx index ae67a064f..5dc91b6dc 100644 --- a/src/debugger/gui/GenesisWidget.cxx +++ b/src/debugger/gui/GenesisWidget.cxx @@ -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: