summaryrefslogtreecommitdiffstats
path: root/apps/recorder
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2018-12-22 22:16:32 -0500
committerSolomon Peachy <pizza@shaftnet.org>2018-12-23 18:01:54 -0500
commit75fe78c8029b26fbc14f13a71901f223ac214e34 (patch)
tree5c6d20120f5b7e205229e607a381d6f81609d326 /apps/recorder
parent7a718fc27dfea78bb212b4fd492334f4f142594e (diff)
downloadrockbox-75fe78c8029b26fbc14f13a71901f223ac214e34.tar.gz
rockbox-75fe78c8029b26fbc14f13a71901f223ac214e34.tar.bz2
rockbox-75fe78c8029b26fbc14f13a71901f223ac214e34.zip
Handle SYS_POWEROFF event in recorder and chessbox plugins
Credit to Igor Poretsky Change-Id: I151d3511b9cee269190d87df7fa7dd355aaafc9b
Diffstat (limited to 'apps/recorder')
-rw-r--r--apps/recorder/recording.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/recorder/recording.c b/apps/recorder/recording.c
index 0098fea007..0ab5654b10 100644
--- a/apps/recorder/recording.c
+++ b/apps/recorder/recording.c
@@ -1615,6 +1615,11 @@ bool recording_screen(bool no_source)
break;
#endif /* CONFIG_KEYPAD == RECORDER_PAD */
+ case SYS_POWEROFF:
+ default_event_handler(SYS_POWEROFF);
+ done = true;
+ break;
+
case SYS_USB_CONNECTED:
/* Only accept USB connection when not recording */
if(!(audio_stat & AUDIO_STATUS_RECORD))