diff --git a/cube/User/Src/counter.c b/cube/User/Src/counter.c index 22e99b9..ea4cc26 100644 --- a/cube/User/Src/counter.c +++ b/cube/User/Src/counter.c @@ -48,7 +48,7 @@ void counterMinuteTick(void *handle) { minuteBuffer->s.totalRunningHours = deviceStats->totalRunningHours; minuteBuffer->s.totalPowercycles = deviceStats->totalPowercycles; minuteBuffer->s.totalWatchdogResets = deviceStats->totalWatchdogResets; - minuteBuffer->s.version = strtol(VERSION, NULL, 16); + minuteBuffer->s.version = strtoll(VERSION, NULL, 16); memset(minuteBuffer->s.deviceId, 0, sizeof(minuteBuffer->s.deviceId));