From a32f7c314a4b11fb81bc2633c50f48bb6db8a2b9 Mon Sep 17 00:00:00 2001 From: payton Date: Mon, 18 Dec 2023 13:56:32 +0800 Subject: [PATCH] =?UTF-8?q?1.1=E8=BF=9B=E5=85=A5setup=E4=BD=BF=E7=94=A8reb?= =?UTF-8?q?oot=E9=87=8D=E5=90=AF=E7=B3=BB=E7=BB=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- code/lib/source/sifar/code/source/mcu/sf_mcu_client.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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 5f6483806..0125885b7 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 @@ -803,7 +803,14 @@ void sf_mcu_dataready_ck(UINT8 startMode) gModuleSleep = 0; //power off 4G module sf_set_power_off_flag(1); printf("[power off] %s(%d)\n", __FUNCTION__, __LINE__); - Ux_PostEvent(NVTEVT_SYSTEM_SHUTDOWN, 1, 0); //shutdown start + if((startMode == 1) && (PWR_ON_AUTO == sf_cardv_convert_power_on_mode())) + { + system("reboot"); + } + else + { + Ux_PostEvent(NVTEVT_SYSTEM_SHUTDOWN, 1, 0); //shutdown start + } } }