diff --git a/Core/Src/yunhorn_sts_process.c b/Core/Src/yunhorn_sts_process.c index 7c4fdf3..717a257 100644 --- a/Core/Src/yunhorn_sts_process.c +++ b/Core/Src/yunhorn_sts_process.c @@ -131,7 +131,7 @@ extern volatile uint8_t sensor_data_ready; void STS_YunhornAuthenticationCode_Process(void) { - if (sts_ac_code[0] == 0x00) { + if ((sts_ac_code[0] == 0x00) && (sts_ac_code[19]== 0x0)) { APP_LOG(TS_OFF,VLEVEL_M, "Initial AC CODE blank... \r\n"); return; } diff --git a/STM32CubeIDE/.cproject b/STM32CubeIDE/.cproject index 33f64e1..a6a5c4b 100644 --- a/STM32CubeIDE/.cproject +++ b/STM32CubeIDE/.cproject @@ -139,7 +139,6 @@