1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

sys/shell/cmds/dfplayer.c: initialize mode

This commit is contained in:
Kaspar Schleiser 2022-09-27 09:29:23 +02:00
parent 2039a10e71
commit 7344e14e1b

View File

@ -172,7 +172,7 @@ static void _print_equalizer(dfplayer_t *dev)
static void _print_mode(dfplayer_t *dev)
{
dfplayer_mode_t mode;
dfplayer_mode_t mode = {0};
int retval = dfplayer_get_mode(dev, &mode);
if (retval) {
_print_error(retval);