]> rtime.felk.cvut.cz Git - rpp-test-sw.git/commitdiff
Fix missing adc update function call
authorMichal Horn <hornmich@fel.cvut.cz>
Tue, 21 Apr 2015 14:23:40 +0000 (16:23 +0200)
committerMichal Horn <hornmich@fel.cvut.cz>
Tue, 21 Apr 2015 14:23:40 +0000 (16:23 +0200)
rpp-test-sw/commands/_rm48_hdk/cmd_adc.c

index 62876061e098e56e7816123b4de3acef89b947fa..4e331dd9d613b7baea7818eeb4274d34f6709b95 100644 (file)
@@ -84,6 +84,8 @@ int cmd_do_adc_watch(cmd_io_t *cmd_io, const struct cmd_des *des, char *param[])
        portTickType last_wake_time = xTaskGetTickCount();
 
        while (cmd_io->getc(cmd_io) < 0) {
+        // Update inputs
+        rpp_adc_update();
 
                for (i = 0; i < 16; i++)
                        rpp_sci_printf("%5d ", rpp_adc_get(i+1));