diff --git a/nrf5/main.c b/nrf5/main.c index aa799c8f63..72b4a79653 100644 --- a/nrf5/main.c +++ b/nrf5/main.c @@ -123,14 +123,6 @@ int main(int argc, char **argv) { timer_init0(); #endif -#if MICROPY_PY_MUSIC - microbit_music_init0(); -#endif - /* - extint_init0(); - timer_init0(); - */ - uart_init0(); #if (MICROPY_PY_BLE_NUS == 0) diff --git a/nrf5/modules/music/modmusic.c b/nrf5/modules/music/modmusic.c index 029200ea9d..680c7c0422 100644 --- a/nrf5/modules/music/modmusic.c +++ b/nrf5/modules/music/modmusic.c @@ -451,6 +451,8 @@ MP_DEFINE_CONST_FUN_OBJ_KW(microbit_music_set_tempo_obj, 0, microbit_music_set_t static mp_obj_t music_init(void) { + microbit_music_init0(); + music_data = m_new_obj(music_data_t); music_data->bpm = DEFAULT_BPM; music_data->ticks = DEFAULT_TICKS;