Commit 08cd88c0 authored by Christian Speckner's avatar Christian Speckner
Browse files

Fix update order, change genesis to pull pin to ground.

parent e6a8281a
Pipeline #19130 passed with stages
in 8 minutes and 38 seconds
......@@ -41,5 +41,5 @@ void Genesis::updateButtons()
updateMouseButtons(firePressed, buttonCPressed);
setPin(DigitalPin::Six, !getAutoFireState(firePressed));
setPin(AnalogPin::Five, buttonCPressed ? AnalogReadout::disconnect() : AnalogReadout::connectToVcc());
setPin(AnalogPin::Five, buttonCPressed ? AnalogReadout::connectToGround() : AnalogReadout::connectToVcc());
}
......@@ -71,9 +71,9 @@ void AnalogReadout::update(Connection connection, uInt64 timestamp, ConsoleTimin
}
if (connection != myConnection) {
myConnection = connection;
updateCharge(timestamp);
myConnection = connection;
}
}
......
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