From: Keith Packard Date: Fri, 28 Oct 2022 02:39:16 +0000 (-0700) Subject: altos: Allow 'c a 0' without Syntax Error X-Git-Tag: 1.9.12~1^2~14 X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=commitdiff_plain;h=14a65822fa2a8bb120638633b068847c8a0197b9 altos: Allow 'c a 0' without Syntax Error Need to clear error after checking for second value in accel cal command. Signed-off-by: Keith Packard --- diff --git a/doc/specs.inc b/doc/specs.inc index 4bba9a53..9f5b426c 100644 --- a/doc/specs.inc +++ b/doc/specs.inc @@ -77,16 +77,7 @@ endif::telemini[] ifdef::easymini[] - |EasyMini v1.0 - |MS5607 30km (100k') - |- - |- - |- - |1MB - |- - |3.7-12V - - |EasyMini v2.0 + |EasyMini v1.0-v3.0 |MS5607 30km (100k') |- |- diff --git a/src/kernel/ao_config.c b/src/kernel/ao_config.c index 84efb11c..b5dd7ddf 100644 --- a/src/kernel/ao_config.c +++ b/src/kernel/ao_config.c @@ -477,6 +477,7 @@ ao_config_accel_calibrate_set(void) return; down = (int16_t) ao_cmd_decimal(); auto_cal = (up == 0 && ao_cmd_status != ao_cmd_success); + ao_cmd_status = ao_cmd_success; if (auto_cal) { up = ao_config_accel_calibrate_auto("up"); #if HAS_IMU