diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2019-07-01 23:08:44 +0200 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2019-07-01 23:08:44 +0200 |
commit | 497a16df708dd8316e658f17127f589e08984547 (patch) | |
tree | c0000dfe82c8f06dc5e176484ad516ee38a0f5c1 /src/common/Core | |
parent | 42ca19997b8a6777702db5ae39c1aa7581a9787f (diff) | |
download | glutte-o-matic-497a16df708dd8316e658f17127f589e08984547.tar.gz glutte-o-matic-497a16df708dd8316e658f17127f589e08984547.tar.bz2 glutte-o-matic-497a16df708dd8316e658f17127f589e08984547.zip |
Fix printf warnings
Diffstat (limited to 'src/common/Core')
-rw-r--r-- | src/common/Core/stats.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/common/Core/stats.c b/src/common/Core/stats.c index e2ec937..b38d99d 100644 --- a/src/common/Core/stats.c +++ b/src/common/Core/stats.c @@ -30,10 +30,10 @@ #include "vc.h" static int values_valid = 0; -static uint32_t num_beacons_sent = 0; -static uint32_t num_wind_generator_movements = 0; -static uint32_t num_tx_switch = 0; -static uint32_t num_antibavard = 0; +static int num_beacons_sent = 0; +static int num_wind_generator_movements = 0; +static int num_tx_switch = 0; +static int num_antibavard = 0; static float battery_min = -1.0f; static float battery_max = -1.0f; static float battery_per_hour[24]; @@ -160,11 +160,11 @@ const char* stats_build_text(void) int time_valid = local_time(&time); uint64_t uptime = timestamp_now(); - uint32_t uptime_j = uptime / (24 * 3600 * 1000); + int uptime_j = uptime / (24 * 3600 * 1000); uptime -= uptime_j * (24 * 3600 * 1000); - uint32_t uptime_h = uptime / (3600 * 1000); + int uptime_h = uptime / (3600 * 1000); uptime -= uptime_h * (24 * 3600 * 1000); - uint32_t uptime_m = uptime / (60 * 1000); + int uptime_m = uptime / (60 * 1000); stats_end_ix = snprintf(stats_text + stats_end_ix, STATS_LEN - 1 - stats_end_ix, "HB9G www.glutte.ch HB9G www.glutte.ch\n"); |