1
0
Fork 0
forked from len0rd/rockbox
foxbox/firmware
Christian Soffke 9d82db1146 pwrmgmt: sleep timer: don't shut down while charging
This mirrors the behavior of idle poweroff,
which inhibits shutdown as long as a charger
is plugged in, even if a device is capable
of powering off while charging.

Since usb_inserted() already checks for USB_POWERED,
certain devices with the ability to power off while
charging, already exhibit this behavior when using
the sleep timer anyway.

Change-Id: I35ed4b542a8a4df06a34395c85f4d37fc1d2ce53
2025-03-14 11:48:12 +01:00
..
asm build: Various LTO fixes 2024-11-24 08:43:23 -05:00
common [BugFix] itoa conflicts with mingw rename to itoa_buf 2025-02-18 10:41:18 -05:00
drivers Asan fix warning for 1-bit vert #2 2025-03-11 01:21:05 -04:00
export Remove BATTERY_TYPES 2025-03-11 02:26:38 -04:00
include [BugFix] itoa conflicts with mingw rename to itoa_buf 2025-02-18 10:41:18 -05:00
kernel kernel: Add queue_full() API call 2024-10-06 11:17:54 -04:00
libc isdigit replace with a slightly faster and shorter conditional 2025-02-02 13:57:58 -05:00
target [FixRed] Creative Zen 2025-03-11 03:02:14 -04:00
usbstack storage: rename MAX_LOG_SECTOR_SIZE to MAX_VIRT_SECTOR_SIZE 2024-11-09 16:32:40 -05:00
arabjoin.c
arabjoin.h
ata_idle_notify.c
backlight-sw-fading.c
backlight.c [Bugfix] call lcd_awake() unconditioanlly on shutdown for devices with HAVE_LCD_SLEEP 2025-01-05 10:59:46 -05:00
bidi.c
buflib_malloc.c
buflib_mempool.c
chunk_alloc.c
COPYING
core_alloc.c
debug.c
eeprom_settings.c
enc_base.c
events.c
firmware.make build: Various LTO fixes 2024-11-24 08:43:23 -05:00
font.c short circuit is_diacritic for 5-15% text drawing speed-up 2025-01-31 21:48:44 -05:00
font_cache.c
general.c
hangul.c
linuxboot.c
load_code.c
logf.c
lru.c
panic.c use lcd_drawinfo instead of separate drawmode, fg, bg calls 2025-02-08 01:02:22 -05:00
pcm.c Rework auto playback frequency switch 2023-10-28 15:11:07 -04:00
pcm_mixer.c
pcm_sampr.c
pcm_sw_volume.c
powermgmt.c pwrmgmt: sleep timer: don't shut down while charging 2025-03-14 11:48:12 +01:00
profile.c
README
rolo.c ErosQNative: Add v3 LCD support, conditional on bootloader 2024-09-02 13:29:43 -04:00
rom.lds
screendump.c
scroll_engine.c Fix red fbc8b2156f 2024-08-28 21:26:06 -04:00
sdmmc.c
sound.c Remove NVRAM infavor of a separate cfg file 2025-01-21 00:04:32 -05:00
SOURCES [BugFix] itoa conflicts with mingw rename to itoa_buf 2025-02-18 10:41:18 -05:00
storage.c ata: Rework how flushing, sleeping, and power off interacts 2024-10-31 12:51:54 -04:00
system.c
timer.c
tuner.c
usb.c

See docs/README