Allow product to override maximum number of command lists (NUM_CMDS)
[fw/altos] / src / core / ao_cmd.c
index fdc70007a36d414c14fe6883d5a07bcd83863041..fbf0c34778094ae08ec176525bc58d49318a2ec8 100644 (file)
@@ -251,11 +251,16 @@ version(void)
        printf("serial-number    %u\n", ao_serial_number);
 #if HAS_LOG
        printf("log-format       %u\n", ao_log_format);
+#endif
+#if HAS_MS5607
+       ao_ms5607_info();
 #endif
        printf("software-version %s\n", ao_version);
 }
 
+#ifndef NUM_CMDS
 #define NUM_CMDS       11
+#endif
 
 static __code struct ao_cmds   *__xdata (ao_cmds[NUM_CMDS]);
 static __pdata uint8_t         ao_ncmds;