Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: utils.cpp
- Revision:
- 10:e63fe4080760
- Parent:
- 9:1b54bac6d9a7
- Child:
- 12:58ad06f9847d
--- a/utils.cpp Thu Oct 03 23:28:56 2019 +0000
+++ b/utils.cpp Fri Oct 04 09:46:00 2019 +0000
@@ -7,8 +7,6 @@
Timer t_utils_timerSinceStart;
s_Section* s_UTILS_currentSection = NULL;
-
-Serial rs_UTILS_odroid(PC_10, PC_11,115200);
InterruptIn b_UTILS_button(USER_BUTTON);
InterruptIn b_UTILS_emergency_signal(PD_0);
@@ -16,10 +14,10 @@
void it_pressed()
{
- rs_LOG_pc.printf("t_utils_timerSinceStart.read_ms(): %ld\r\n", t_utils_timerSinceStart.read_ms());
if(t_utils_timerSinceStart.read_ms() > 500) {
- rs_LOG_pc.printf("Button pressed\r\n");
+ rs_LOG_pc.printf("Button pressed; log ready: %d\r\n",b_LOG_READY);
if(b_LOG_READY) {
+ log_pc();
b_LOG_READY = false;
} else {
t_utils_timerSinceStart.reset();