Remove unnecessary code (handled by hardware)
This commit is contained in:
@@ -210,21 +210,6 @@ int main()
|
|||||||
pwrInit();
|
pwrInit();
|
||||||
keysInit();
|
keysInit();
|
||||||
|
|
||||||
// USB charger handling
|
|
||||||
#if defined(USB_CHARGER)
|
|
||||||
if (!WAS_RESET_BY_WATCHDOG_OR_SOFTWARE() && !pwrPressed()) {
|
|
||||||
ledInit();
|
|
||||||
usbChargerInit();
|
|
||||||
ledOff();
|
|
||||||
while (!pwrPressed()) {
|
|
||||||
if(usbChargerLed())
|
|
||||||
GPIO_SetBits(LED_GPIO, LED_GREEN_GPIO_PIN);
|
|
||||||
else
|
|
||||||
ledOff();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// wait a bit for the inputs to stabilize...
|
// wait a bit for the inputs to stabilize...
|
||||||
if (!WAS_RESET_BY_WATCHDOG_OR_SOFTWARE()) {
|
if (!WAS_RESET_BY_WATCHDOG_OR_SOFTWARE()) {
|
||||||
for (uint32_t i = 0; i < 150000; i++) {
|
for (uint32_t i = 0; i < 150000; i++) {
|
||||||
|
|||||||
Reference in New Issue
Block a user