use NA to disable load cell in calibration command

This commit is contained in:
Joerg Lehmann 2020-02-29 11:38:17 +01:00
parent 08f90010e7
commit 92c1aaefbe
1 changed files with 3 additions and 3 deletions

View File

@ -1355,7 +1355,7 @@ cCommandStream::CommandStatus cmdCalibrateScaleA(cCommandStream *pThis, void *pC
String w1_gramm(argv[1]);
long weight1;
if (w1_gramm.toFloat() == -1.0) {
if (w1_gramm == "NA") {
// scale a is not connected
config_data.cal_w1_factor = 0.0;
config_data.cal_w1_0 = NOT_ATTACHED;
@ -1377,8 +1377,8 @@ cCommandStream::CommandStatus cmdCalibrateScaleB(cCommandStream *pThis, void *pC
String w2_gramm(argv[1]);
long weight2;
if (w2_gramm.toFloat() == -1.0) {
// scale a is not connected
if (w2_gramm == "NA") {
// scale b is not connected
config_data.cal_w2_factor = 0.0;
config_data.cal_w2_0 = NOT_ATTACHED;
} else {