1.更换重启命令
This commit is contained in:
parent
5d2ca48ce3
commit
b1452dad68
|
@ -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__);
|
||||
sf_set_power_off_flag(1);
|
||||
//sf_app_battery_stop();
|
||||
system("reboot");
|
||||
system("watchdog -T 1 -t 5 /dev/watchdog");
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
@ -806,7 +806,7 @@ void sf_mcu_dataready_ck(UINT8 startMode)
|
|||
printf("[power off] %s(%d)\n", __FUNCTION__, __LINE__);
|
||||
if((startMode == 1) && (PWR_ON_AUTO == sf_cardv_convert_power_on_mode()))
|
||||
{
|
||||
system("reboot");
|
||||
system("watchdog -T 1 -t 5 /dev/watchdog");
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user