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:
parent
2039a10e71
commit
7344e14e1b
@ -172,7 +172,7 @@ static void _print_equalizer(dfplayer_t *dev)
|
|||||||
|
|
||||||
static void _print_mode(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);
|
int retval = dfplayer_get_mode(dev, &mode);
|
||||||
if (retval) {
|
if (retval) {
|
||||||
_print_error(retval);
|
_print_error(retval);
|
||||||
|
Loading…
Reference in New Issue
Block a user