mirror of
https://github.com/OneOfEleven/uv-k5-firmware-custom.git
synced 2025-06-20 15:08:37 +03:00
Fix some warnings, made all the serial/uart comms packet structure packed, otherwise the compiler can totally mess up ones day there !
This commit is contained in:
@ -676,7 +676,10 @@ static void MAIN_Key_STAR(bool key_pressed, bool key_held)
|
||||
#endif
|
||||
{ // start entering a DTMF string
|
||||
|
||||
memmove(g_dtmf_input_box, g_dtmf_string, MIN(sizeof(g_dtmf_input_box), sizeof(g_dtmf_string) - 1));
|
||||
memmove(
|
||||
g_dtmf_input_box,
|
||||
g_dtmf_string,
|
||||
(sizeof(g_dtmf_input_box) <= (sizeof(g_dtmf_string) - 1)) ? sizeof(g_dtmf_input_box) : sizeof(g_dtmf_string) - 1);
|
||||
g_dtmf_input_box_index = 0;
|
||||
g_dtmf_input_mode = true;
|
||||
|
||||
|
Reference in New Issue
Block a user