1.更换重启命令

This commit is contained in:
payton 2023-12-27 11:57:21 +08:00
parent 5d2ca48ce3
commit b1452dad68
2 changed files with 2 additions and 2 deletions

View File

@ -969,7 +969,7 @@ unsigned char sf_commu_parse_mcu_data(unsigned char * src, unsigned int len)
printf("[power off] %s(%d)\n", __FUNCTION__, __LINE__); printf("[power off] %s(%d)\n", __FUNCTION__, __LINE__);
sf_set_power_off_flag(1); sf_set_power_off_flag(1);
//sf_app_battery_stop(); //sf_app_battery_stop();
system("reboot"); system("watchdog -T 1 -t 5 /dev/watchdog");
} }
else else
{ {

View File

@ -806,7 +806,7 @@ void sf_mcu_dataready_ck(UINT8 startMode)
printf("[power off] %s(%d)\n", __FUNCTION__, __LINE__); printf("[power off] %s(%d)\n", __FUNCTION__, __LINE__);
if((startMode == 1) && (PWR_ON_AUTO == sf_cardv_convert_power_on_mode())) if((startMode == 1) && (PWR_ON_AUTO == sf_cardv_convert_power_on_mode()))
{ {
system("reboot"); system("watchdog -T 1 -t 5 /dev/watchdog");
} }
else else
{ {