altos: Allow 'c a 0' without Syntax Error
authorKeith Packard <keithp@keithp.com>
Fri, 28 Oct 2022 02:39:16 +0000 (19:39 -0700)
committerKeith Packard <keithp@keithp.com>
Fri, 28 Oct 2022 02:39:16 +0000 (19:39 -0700)
Need to clear error after checking for second value in accel cal
command.

Signed-off-by: Keith Packard <keithp@keithp.com>
doc/specs.inc
src/kernel/ao_config.c

index 4bba9a53d3d716a6328883bf734665bbd98909c1..9f5b426ccf1711c1edbecb0a3b03e9630de087b8 100644 (file)
 
        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')
        |-
        |-
index 84efb11cd0e2e3474723e9bf51ea339f9130a2e1..b5dd7ddf8f1c32f47de032be6d65d8904b43944e 100644 (file)
@@ -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