Rockbox open source high quality audio player as a Music Player Daemon
mpris rockbox mpd libadwaita audio rust zig deno
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

debug_menu: show 2nd SD/MMC card info only if NUM_DRIVES > 1

Toggling to the second card was allowed if HAVE_HOTSWAP
was defined, but on targets with a single hotswappable
SD card -- for example many JZ47xx/X1000 targets -- this
ends up calling card_get_info() on a non-existent drive.

A slightly better option is to check if NUM_DRIVES is
greater than 1. This is still just guessing the number
of SD/MMC slots, but it should be wrong in fewer cases.

Change-Id: Ifca29323f1c7091d9cce55c73147d0d1decae9a5

authored by

Aidan MacDonald and committed by
Solomon Peachy
eafcbd3f c9c6fde6

+1 -1
+1 -1
apps/debug_menu.c
··· 1283 1283 1284 1284 if ((btn == ACTION_STD_OK) || (btn == SYS_FS_CHANGED) || (btn == ACTION_REDRAW)) 1285 1285 { 1286 - #ifdef HAVE_HOTSWAP 1286 + #if NUM_DRIVES > 1 1287 1287 if (btn == ACTION_STD_OK) 1288 1288 { 1289 1289 *cardnum ^= 0x1; /* change cards */