comparison src/cs/drivers/drv_app/abb/board/abb_inth.c @ 213:0947a816580c

first stage of FreeCalypso handset switch-on logic rework
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 22 Apr 2021 21:23:16 +0000
parents 782c6ae77467
children 45cc81cc6230
comparison
equal deleted inserted replaced
212:782c6ae77467 213:0947a816580c
104 104
105 // check all the possible causes of the ABB IT 105 // check all the possible causes of the ABB IT
106 if (*read_value & PUSHOFF_IT_STS) 106 if (*read_value & PUSHOFF_IT_STS)
107 { 107 {
108 /* Push Button from ON to OFF */ 108 /* Push Button from ON to OFF */
109 if (SPI_GBL_INFO_PTR->is_gsm_on == TRUE) 109 /* condition below removed in FreeCalypso */
110 /* if (SPI_GBL_INFO_PTR->is_gsm_on == TRUE) */
110 { 111 {
111 NU_Sleep(SHORT_OFF_KEY_PRESSED); 112 NU_Sleep(SHORT_OFF_KEY_PRESSED);
112 113
113 // WCP Patch 114 // WCP Patch
114 #if (OP_WCP == 1) 115 #if (OP_WCP == 1)
153 154
154 Power_OFF_Button(); 155 Power_OFF_Button();
155 } 156 }
156 } 157 }
157 #endif //WCP 158 #endif //WCP
158 }
159 else /* GSM OFF */
160 {
161 rvf_send_trace("IQ EXT: Power On request",24, NULL_PARAM, RV_TRACE_LEVEL_DEBUG_LOW, SPI_USE_ID);
162
163 Power_ON_Button();
164 } 159 }
165 } 160 }
166 161
167 else if (*read_value & REMOT_IT_STS) 162 else if (*read_value & REMOT_IT_STS)
168 { 163 {