comparison src/cs/system/main/create_RVtasks.c @ 282:231bceb7d95c

skip switch-on buzzer beep in UI-enabled builds
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 24 Sep 2021 03:23:55 +0000
parents 8f16e0663737
children e5cfd6362158
comparison
equal deleted inserted replaced
281:a75eefbf8be4 282:231bceb7d95c
579 #ifndef _WINDOWS 579 #ifndef _WINDOWS
580 // Perform switch ON processing. 580 // Perform switch ON processing.
581 Switch_ON(); 581 Switch_ON();
582 #endif 582 #endif
583 583
584 #if (_GSM==1) 584 /*
585 * FreeCalypso change: we omit the BZ_BeyKeep_ON() action
586 * in UI-enabled builds, which will also have FCBM.
587 * In these builds the switch-on feedback to the user is the phone
588 * or devboard LCD lighting up, hence the buzzer feedback becomes
589 * redundant.
590 *
591 * Besides UI-level redundancy, another problem with ringing the
592 * buzzer here occurs in charging boot scenarios, when Iota switch-on
593 * marks the transition from precharge to fw-driven charging.
594 * Experience shows that when the battery just barely made it past
595 * Iota switch-on threshold, the extra current draw caused by either
596 * the buzzer or the LCD backlight may be enough to cause an emergency
597 * switch-off, and several such cycles will occur before the battery
598 * is precharged enough to make it past this next threshold.
599 * Eliminating the buzzer ringing action and leaving just the LCD
600 * with its backlight seems like the right course of action in this
601 * scenario.
602 */
603 #if (_GSM==1) && !defined(RVM_FCBM_SWE)
585 BZ_KeyBeep_ON (); // Audio feedback if ON/OFF pushed 604 BZ_KeyBeep_ON (); // Audio feedback if ON/OFF pushed
586 #endif // if (_GSM==1) 605 #endif // if (_GSM==1)
587 606
588 #endif 607 #endif
589 #if (CHIPSET!=15) || (REMU==0) 608 #if (CHIPSET!=15) || (REMU==0)