Internal_Datalogger but with USB support removed (for MAX40108 Demo board), proof of concept that MAX32625 can be used successfully with VDDB(USB) left unpowered, as long as the USB library is not used.
Dependencies: max32625pico CmdLine
Diff: DataLogger_Internal.cpp
- Revision:
- 32:80f3e5eb77d4
- Parent:
- 31:47eee7e0cc2d
- Child:
- 33:70a28cfe9e01
diff -r 47eee7e0cc2d -r 80f3e5eb77d4 DataLogger_Internal.cpp --- a/DataLogger_Internal.cpp Tue Apr 27 03:28:20 2021 -0700 +++ b/DataLogger_Internal.cpp Wed Apr 28 17:56:15 2021 -0700 @@ -4517,6 +4517,7 @@ // g_timer_interval_count = 10; if (cmdLine.parse_int_dec("count", g_timer_interval_count)) { + if (g_timer_interval_count < 1) { g_timer_interval_count = 1; } // Command forwarding to AUX serial TX/RX cmdLine_AUXserial #257 -- message_ms //~ cmdLine_AuxSerial.serial().printf("\r\n*** message_ms was set to %d ***\r\n", g_auxSerialCom_message_ms); cmdLine.serial().printf("\r\n g_timer_interval_count=%d", g_timer_interval_count); @@ -6017,7 +6018,7 @@ #endif // USE_CMDLINE_MENUS support CmdLine command menus #if USE_DATALOGGER_TRIGGER // support Datalog trigger - // TODO Datalog trigger + // Datalog trigger if (Datalogger_Trigger == trigger_Halt) { // halt the datalogger; continue accepting commands continue; @@ -6027,7 +6028,7 @@ } if (Datalogger_Trigger == trigger_Timer) { // timer (configure interval) - // TODO: if Datalogger_Trigger == trigger_Timer sleep(g_timer_interval_msec) + // if Datalogger_Trigger == trigger_Timer sleep(g_timer_interval_msec) // sleep(g_timer_interval_msec); // error: too many arguments to function 'void sleep()' wait_ms(g_timer_interval_msec); // sleep during delay? if (g_timer_interval_counter > 0) { @@ -6035,7 +6036,7 @@ continue; } // if time interval not yet reached, continue (continue accepting commands) - g_timer_interval_counter = g_timer_interval_count; + g_timer_interval_counter = g_timer_interval_count-1; } if (Datalogger_Trigger == trigger_PlatformDigitalInput) { // platform digital input (configure digital input pin reference)