ACTION_Handle: Drop switch in favour of a function array

This commit is contained in:
Juan Antonio
2023-12-07 12:22:22 +01:00
parent 4249d917f8
commit 335c2ec9cd
4 changed files with 70 additions and 75 deletions

4
misc.c
View File

@@ -253,6 +253,8 @@ volatile uint8_t boot_counter_10ms;
uint8_t gIsLocked = 0xFF;
inline void FUNCTION_NOP() { ; }
int32_t NUMBER_AddWithWraparound(int32_t Base, int32_t Add, int32_t LowerLimit, int32_t UpperLimit)
{
@@ -277,4 +279,4 @@ unsigned long StrToUL(const char * str)
ul = ul * 10 + (uint8_t)(c-'0');
}
return ul;
}
}