use int not int2

This commit is contained in:
Johannes Jöns 2024-10-14 00:14:06 +02:00
parent a44814c060
commit c0ba71b2bc
2 changed files with 2 additions and 2 deletions

View file

@ -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;
}

View file

@ -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