Index: firmware/App/Modes/ModeStandby.c =================================================================== diff -u -r8cebc7f282f403c99f712d422454c15414b6fc73 -r358e32a9fb25a6929fc5bbd7ee1d8ed2c4b69920 --- firmware/App/Modes/ModeStandby.c (.../ModeStandby.c) (revision 8cebc7f282f403c99f712d422454c15414b6fc73) +++ firmware/App/Modes/ModeStandby.c (.../ModeStandby.c) (revision 358e32a9fb25a6929fc5bbd7ee1d8ed2c4b69920) @@ -1,17 +1,17 @@ /************************************************************************** * -* Copyright (c) 2019-2020 Diality Inc. - All Rights Reserved. +* Copyright (c) 2019-2021 Diality Inc. - All Rights Reserved. * * THIS CODE MAY NOT BE COPIED OR REPRODUCED IN ANY FORM, IN PART OR IN * WHOLE, WITHOUT THE EXPLICIT PERMISSION OF THE COPYRIGHT OWNER. * -* @file ModeStandby.c +* @file ModeStandby.c * -* @author (last) Sean Nash -* @date (last) 08-Oct-2020 +* @author (last) Quang Nguyen +* @date (last) 24-Aug-2021 * -* @author (original) Dara Navaei -* @date (original) 05-Nov-2019 +* @author (original) Dara Navaei +* @date (original) 05-Nov-2019 * ***************************************************************************/ @@ -296,12 +296,14 @@ { rejReason = REQUEST_REJECT_REASON_DG_NOT_IN_STANDBY_IDLE_STATE; } + #ifndef DISABLE_BATT_COMM if ( FALSE == isBatteryCharged() ) { rejReason = REQUEST_REJECT_REASON_BATTERY_IS_NOT_CHARGED; } #endif + if ( REQUEST_REJECT_REASON_NONE == rejReason ) { result = TRUE;