From 2ba2cb0cc8b2abda8035fc0dc5328242ef3e3af7 Mon Sep 17 00:00:00 2001 From: Yang Wang Date: Wed, 17 Oct 2018 18:06:01 -0400 Subject: [PATCH] Add: debug print --- software/producer/debug_tools/heartbeat.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/software/producer/debug_tools/heartbeat.c b/software/producer/debug_tools/heartbeat.c index b951ba4..9bb5045 100644 --- a/software/producer/debug_tools/heartbeat.c +++ b/software/producer/debug_tools/heartbeat.c @@ -74,9 +74,9 @@ void timer_handler(int signum) { double timestamp; /* Heartbeat message variables */ - static int cell_ns = -80; - static int wifi_ns = -70; //TODO: get real wifi rssi - static int ret; + int cell_ns = -80; + int wifi_ns = -70; //TODO: get real wifi rssi + int ret; bool netled = false; bool statled = false; int ledval = 0; @@ -209,6 +209,7 @@ void timer_handler(int signum) { } else { netled = false; } + printf("netled: %d\n", netled); } else { perror("popen"); exit(EXIT_FAILURE); @@ -229,6 +230,7 @@ void timer_handler(int signum) { } else { statled = false; } + printf("statled: %d\n", statled); } else { perror("popen"); exit(EXIT_FAILURE);