Skip to content

Commit

Permalink
strange u_int type
Browse files Browse the repository at this point in the history
  • Loading branch information
pat1 committed Nov 2, 2023
1 parent 5213d4f commit 3649762
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions platformio/stima_v4/master/src/tasks/supervisor_task.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ SupervisorTask::SupervisorTask(const char *taskName, uint16_t stackSize, uint8_t
/// @brief local stack Monitor (optional)
void SupervisorTask::TaskMonitorStack()
{
u_int16_t stackUsage = (u_int16_t)uxTaskGetStackHighWaterMark( NULL );
uint16_t stackUsage = (uint16_t)uxTaskGetStackHighWaterMark( NULL );
if((stackUsage) && (stackUsage < param.system_status->tasks[LOCAL_TASK_ID].stack)) {
param.systemStatusLock->Take();
param.system_status->tasks[LOCAL_TASK_ID].stack = stackUsage;
Expand Down Expand Up @@ -998,4 +998,4 @@ bool SupervisorTask::saveConfiguration(bool is_default)
}

return status;
}
}
4 changes: 2 additions & 2 deletions platformio/stima_v4/master/src/tasks/usbserial_task.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ UsbSerialTask::UsbSerialTask(const char *taskName, uint16_t stackSize, uint8_t p
/// @brief local stack Monitor (optional)
void UsbSerialTask::TaskMonitorStack()
{
u_int16_t stackUsage = (u_int16_t)uxTaskGetStackHighWaterMark( NULL );
uint16_t stackUsage = (uint16_t)uxTaskGetStackHighWaterMark( NULL );
if((stackUsage) && (stackUsage < param.system_status->tasks[LOCAL_TASK_ID].stack)) {
param.systemStatusLock->Take();
param.system_status->tasks[LOCAL_TASK_ID].stack = stackUsage;
Expand Down Expand Up @@ -184,4 +184,4 @@ void UsbSerialTask::Run()
}
}

#endif
#endif

0 comments on commit 3649762

Please sign in to comment.