|
@@ -367,7 +367,16 @@ int main(void)
|
|
|
if (!deviceInfo.loraSendSuccessFlag) {
|
|
if (!deviceInfo.loraSendSuccessFlag) {
|
|
|
E52_Heartbeat_Fun();
|
|
E52_Heartbeat_Fun();
|
|
|
}
|
|
}
|
|
|
- HAL_Delay(10*1000);
|
|
|
|
|
|
|
+ uint8_t count = 0;
|
|
|
|
|
+ while(count < 10) {
|
|
|
|
|
+ HAL_GPIO_TogglePin(PowerLED_GPIO_Port, PowerLED_Pin);
|
|
|
|
|
+ if (HAL_GPIO_ReadPin(JUGE_PIN_GPIO_Port, JUGE_PIN_Pin) == GPIO_PIN_RESET) {
|
|
|
|
|
+ powerOff();
|
|
|
|
|
+ break;
|
|
|
|
|
+ }
|
|
|
|
|
+ count++;
|
|
|
|
|
+ HAL_Delay(1000);
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// if (SOS_key_struct.sosCheckActive) {
|
|
// if (SOS_key_struct.sosCheckActive) {
|