From c0ba71b2bcef97b08d512958fca7d6d7a0b1120b Mon Sep 17 00:00:00 2001 From: jopejoe1 Date: Mon, 14 Oct 2024 00:14:06 +0200 Subject: [PATCH] use int not int2 --- embadet/main/apple.c | 2 +- embadet/main/apple.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/embadet/main/apple.c b/embadet/main/apple.c index 274226e..920a329 100644 --- a/embadet/main/apple.c +++ b/embadet/main/apple.c @@ -23,7 +23,7 @@ void getmac(uint8_t *buf) { int getUpTime() { // Get system uptime in milliseconds - uint32_t uptime = (xTaskGetTickCount() * (1000 / configTICK_RATE_HZ)); + int uptime = (xTaskGetTickCount() * (1000 / configTICK_RATE_HZ)); return uptime; } diff --git a/embadet/main/apple.h b/embadet/main/apple.h index b044f69..c06bae3 100644 --- a/embadet/main/apple.h +++ b/embadet/main/apple.h @@ -15,7 +15,7 @@ struct appledata { uint8_t mac[6]; float temp; float batteryVoltage; // Corrected spelling - uint32_t upTime; // Use uint32_t for uptime + int upTime; // Use uint32_t for uptime }; // Function declarations