Tweak exception message.
This commit is contained in:
parent
50fc90bc5f
commit
24116eff23
@ -221,7 +221,7 @@ STATIC mp_obj_t audiobusio_i2sout_obj_pause(mp_obj_t self_in) {
|
|||||||
raise_error_if_deinited(common_hal_audiobusio_i2sout_deinited(self));
|
raise_error_if_deinited(common_hal_audiobusio_i2sout_deinited(self));
|
||||||
|
|
||||||
if (!common_hal_audiobusio_i2sout_get_playing(self)) {
|
if (!common_hal_audiobusio_i2sout_get_playing(self)) {
|
||||||
mp_raise_RuntimeError("No sample playing cannot pause");
|
mp_raise_RuntimeError("Not playing");
|
||||||
}
|
}
|
||||||
common_hal_audiobusio_i2sout_pause(self);
|
common_hal_audiobusio_i2sout_pause(self);
|
||||||
return mp_const_none;
|
return mp_const_none;
|
||||||
|
@ -218,7 +218,7 @@ STATIC mp_obj_t audioio_audioout_obj_pause(mp_obj_t self_in) {
|
|||||||
raise_error_if_deinited(common_hal_audioio_audioout_deinited(self));
|
raise_error_if_deinited(common_hal_audioio_audioout_deinited(self));
|
||||||
|
|
||||||
if (!common_hal_audioio_audioout_get_playing(self)) {
|
if (!common_hal_audioio_audioout_get_playing(self)) {
|
||||||
mp_raise_RuntimeError("No sample playing cannot pause");
|
mp_raise_RuntimeError("Not playing");
|
||||||
}
|
}
|
||||||
common_hal_audioio_audioout_pause(self);
|
common_hal_audioio_audioout_pause(self);
|
||||||
return mp_const_none;
|
return mp_const_none;
|
||||||
|
Loading…
Reference in New Issue
Block a user