Update cLib_calcTimer (#2179)

This commit is contained in:
Daniel Hajjar 2024-07-15 11:48:30 +02:00 committed by GitHub
parent 19e3defe5b
commit 09beea4a09
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 2 deletions

View File

@ -87,8 +87,7 @@ inline T cLib_maxLimit(T val, T max) {
template <typename T>
T cLib_calcTimer(T* value) {
// Casting 0 to u16 may not be correct, but is matching for now
if (*value != (u16)0) {
if (*(T*)value != 0) {
*value = *value - 1;
}
return *value;