# HG changeset patch # User Mychaela Falconia # Date 1517173942 0 # Node ID 4b6acb68b851088d4595cdb393e0da3b65f5688b # Parent bed6d393f3e0a923a762e8167b7de06e61fcae89 ../drv_app/power: fixed button power-off for ACI vs. MFW builds diff -r bed6d393f3e0 -r 4b6acb68b851 src/cs/drivers/drv_app/power/board/power.c --- a/src/cs/drivers/drv_app/power/board/power.c Sun Jan 28 19:26:10 2018 +0000 +++ b/src/cs/drivers/drv_app/power/board/power.c Sun Jan 28 21:12:22 2018 +0000 @@ -72,11 +72,8 @@ When we build for ACI, we have no MMI, so there's no point waiting for a keypress. See CR 17958. */ -#if (MMI == 0) - return; -#endif -#if (OP_WCP == 0) +#if (OP_WCP == 0) && (MMI != 0) /* Wait until the pointers initialization by the SMI */ while(!(Kp.pressed && Kp.released)) @@ -114,10 +111,12 @@ rvf_send_trace("Power off button", 16, NULL_PARAM, RV_TRACE_LEVEL_WARNING, LCC_USE_ID); SPI_GBL_INFO_PTR->is_gsm_on = FALSE; #ifndef _WINDOWS - #if (OP_WCP == 0) + #if (OP_WCP == 0) && (MMI != 0) (Kp.pressed)(KPD_PWR); /* tell key is pressed */ rvf_delay(5); (Kp.released)(); /* tell key is released */ + #else + ABB_Power_Off(); #endif #endif // _WINDOWS }