Skip to content

Commit

Permalink
claibration gui fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
mvladic committed Apr 7, 2020
1 parent 33e25ee commit 4122f3c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/eez/modules/psu/gui/calibration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ void showCurrentStep();
////////////////////////////////////////////////////////////////////////////////

void onStartPasswordOk() {
popPage();

channel_dispatcher::outputEnable(*g_channel, false);

g_channel->clearProtection();
Expand Down Expand Up @@ -151,7 +153,7 @@ void setLevelValue() {
options.flags.signButtonEnabled = true;
options.flags.dotButtonEnabled = true;

NumericKeypad *numericKeypad = NumericKeypad::start(0, levelValue, options, onSetLevelOk, 0, showCurrentStep);
NumericKeypad *numericKeypad = NumericKeypad::start(0, levelValue, options, onSetLevelOk, nullptr, nullptr);

if (levelValue.getFloat() < 1) {
numericKeypad->switchToMilli();
Expand Down Expand Up @@ -221,7 +223,7 @@ void set() {
options.flags.signButtonEnabled = true;
options.flags.dotButtonEnabled = true;

NumericKeypad *numericKeypad = NumericKeypad::start(0, Value(), options, onSetOk, 0, showCurrentStep);
NumericKeypad *numericKeypad = NumericKeypad::start(0, Value(), options, onSetOk, nullptr, nullptr);

if (getLevelValue().getFloat() < 0.001) {
numericKeypad->switchToMicro();
Expand Down

0 comments on commit 4122f3c

Please sign in to comment.