diff --git a/Inc/main.h b/Inc/main.h index b39688d..2075126 100644 --- a/Inc/main.h +++ b/Inc/main.h @@ -157,7 +157,7 @@ #define CMD_USB_RESUME 26 extern int reset_requested; -extern char serial_number_64[17]; +extern char serial_number_64[13]; extern uint8_t mac_address[6]; extern char error_message[80]; extern int go_back_to_sleep; diff --git a/Src/main.c b/Src/main.c index 29c8ec4..d35ff85 100644 --- a/Src/main.c +++ b/Src/main.c @@ -149,7 +149,7 @@ osMutexId hardwareInitMutexHandle; int lost_power = 0; int reset_requested = 0; -char serial_number_64[17] = {0}; +char serial_number_64[13] = {0}; // Make sure it is not overwritten during resets (bss3). uint8_t mac_address[6] __attribute__((section(".bss3"))) = {0}; char error_message[80] __attribute__((section(".bss3"))) = {0};