altos: Make TeleMini v2.0 fit
[fw/altos] / src / core / ao_cmd.c
index 7da2384f8c9d5a155112a83dda61949211640709..4ebaa6079368ec80164a8176d8d010914552cc9d 100644 (file)
@@ -206,9 +206,9 @@ ao_cmd_hex(void)
 }
 
 void
-ao_cmd_decimal(void)
+ao_cmd_decimal(void) __reentrant
 {
-       __pdata uint8_t r = ao_cmd_lex_error;
+       uint8_t r = ao_cmd_lex_error;
 
        ao_cmd_lex_u32 = 0;
        ao_cmd_white();
@@ -290,9 +290,6 @@ version(void)
               , ao_log_format
 #endif
                );
-#if HAS_MS5607
-       ao_ms5607_info();
-#endif
        printf("software-version %s\n", ao_version);
 }
 #endif
@@ -385,6 +382,18 @@ ao_cmd(void)
        }
 }
 
+#if HAS_BOOT_LOADER
+
+#include <ao_boot.h>
+
+static void
+ao_loader(void)
+{
+       flush();
+       ao_boot_loader();
+}
+#endif
+
 __xdata struct ao_task ao_cmd_task;
 
 __code struct ao_cmds  ao_base_cmds[] = {
@@ -396,6 +405,9 @@ __code struct ao_cmds       ao_base_cmds[] = {
        { ao_reboot,    "r eboot\0Reboot" },
 #if HAS_VERSION
        { version,      "v\0Version" },
+#endif
+#if HAS_BOOT_LOADER
+       { ao_loader,    "X\0Switch to boot loader" },
 #endif
        { 0,    NULL },
 };