ACTION_Handle: Drop switch in favour of a function array
This commit is contained in:
4
misc.c
4
misc.c
@@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user