Tweak exception message.

This commit is contained in:
Scott Shawcroft 2018-05-08 12:44:27 -07:00
parent 50fc90bc5f
commit 24116eff23
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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;