Skip to content

Commit

Permalink
Add: debug print
Browse files Browse the repository at this point in the history
  • Loading branch information
wang701 committed Oct 17, 2018
1 parent 1d13218 commit 2ba2cb0
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions software/producer/debug_tools/heartbeat.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -209,6 +209,7 @@ void timer_handler(int signum) {
} else {
netled = false;
}
printf("netled: %d\n", netled);
} else {
perror("popen");
exit(EXIT_FAILURE);
Expand All @@ -229,6 +230,7 @@ void timer_handler(int signum) {
} else {
statled = false;
}
printf("statled: %d\n", statled);
} else {
perror("popen");
exit(EXIT_FAILURE);
Expand Down

0 comments on commit 2ba2cb0

Please sign in to comment.