0
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:
OneOfEleven
2023-10-10 12:44:10 +01:00
parent b19be17f01
commit 774e34bf43
9 changed files with 311 additions and 297 deletions

View File

@ -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;