use int not int2
This commit is contained in:
parent
a44814c060
commit
c0ba71b2bc
2 changed files with 2 additions and 2 deletions
|
@ -23,7 +23,7 @@ void getmac(uint8_t *buf) {
|
||||||
|
|
||||||
int getUpTime() {
|
int getUpTime() {
|
||||||
// Get system uptime in milliseconds
|
// Get system uptime in milliseconds
|
||||||
uint32_t uptime = (xTaskGetTickCount() * (1000 / configTICK_RATE_HZ));
|
int uptime = (xTaskGetTickCount() * (1000 / configTICK_RATE_HZ));
|
||||||
return uptime;
|
return uptime;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -15,7 +15,7 @@ struct appledata {
|
||||||
uint8_t mac[6];
|
uint8_t mac[6];
|
||||||
float temp;
|
float temp;
|
||||||
float batteryVoltage; // Corrected spelling
|
float batteryVoltage; // Corrected spelling
|
||||||
uint32_t upTime; // Use uint32_t for uptime
|
int upTime; // Use uint32_t for uptime
|
||||||
};
|
};
|
||||||
|
|
||||||
// Function declarations
|
// Function declarations
|
||||||
|
|
Loading…
Reference in a new issue