diff --git a/code/application/source/sf_app/code/source/systemMng/sf_commu_mcu.c b/code/application/source/sf_app/code/source/systemMng/sf_commu_mcu.c index cf97de0a1..b9eca674a 100755 --- a/code/application/source/sf_app/code/source/systemMng/sf_commu_mcu.c +++ b/code/application/source/sf_app/code/source/systemMng/sf_commu_mcu.c @@ -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 { diff --git a/code/lib/source/sifar/code/source/mcu/sf_mcu_client.c b/code/lib/source/sifar/code/source/mcu/sf_mcu_client.c index 028855846..a52636774 100644 --- a/code/lib/source/sifar/code/source/mcu/sf_mcu_client.c +++ b/code/lib/source/sifar/code/source/mcu/sf_mcu_client.c @@ -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 {