use NA to disable load cell in calibration command
This commit is contained in:
@@ -1355,7 +1355,7 @@ cCommandStream::CommandStatus cmdCalibrateScaleA(cCommandStream *pThis, void *pC
|
|||||||
String w1_gramm(argv[1]);
|
String w1_gramm(argv[1]);
|
||||||
long weight1;
|
long weight1;
|
||||||
|
|
||||||
if (w1_gramm.toFloat() == -1.0) {
|
if (w1_gramm == "NA") {
|
||||||
// scale a is not connected
|
// scale a is not connected
|
||||||
config_data.cal_w1_factor = 0.0;
|
config_data.cal_w1_factor = 0.0;
|
||||||
config_data.cal_w1_0 = NOT_ATTACHED;
|
config_data.cal_w1_0 = NOT_ATTACHED;
|
||||||
@@ -1377,8 +1377,8 @@ cCommandStream::CommandStatus cmdCalibrateScaleB(cCommandStream *pThis, void *pC
|
|||||||
String w2_gramm(argv[1]);
|
String w2_gramm(argv[1]);
|
||||||
long weight2;
|
long weight2;
|
||||||
|
|
||||||
if (w2_gramm.toFloat() == -1.0) {
|
if (w2_gramm == "NA") {
|
||||||
// scale a is not connected
|
// scale b is not connected
|
||||||
config_data.cal_w2_factor = 0.0;
|
config_data.cal_w2_factor = 0.0;
|
||||||
config_data.cal_w2_0 = NOT_ATTACHED;
|
config_data.cal_w2_0 = NOT_ATTACHED;
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user