Fix crash when starting audiocore from REPL
All checks were successful
Check code formatting / Check-C-Format (push) Successful in 7s
Check code formatting / Check-Python-Flake8 (push) Successful in 9s
Check code formatting / Check-Bash-Shellcheck (push) Successful in 4s
Run unit tests on host / Run-Unit-Tests (push) Successful in 7s
Build RPi Pico firmware image / Build-Firmware (push) Successful in 3m0s
All checks were successful
Check code formatting / Check-C-Format (push) Successful in 7s
Check code formatting / Check-Python-Flake8 (push) Successful in 9s
Check code formatting / Check-Bash-Shellcheck (push) Successful in 4s
Run unit tests on host / Run-Unit-Tests (push) Successful in 7s
Build RPi Pico firmware image / Build-Firmware (push) Successful in 3m0s
This commit is contained in:
Submodule software/lib/micropython updated: 0f26771a44...e4422b860e
@@ -155,8 +155,6 @@ static mp_obj_t audiocore_set_volume(mp_obj_t self_in, mp_obj_t volume_obj)
|
||||
}
|
||||
static MP_DEFINE_CONST_FUN_OBJ_2(audiocore_set_volume_obj, audiocore_set_volume);
|
||||
|
||||
static uint32_t __scratch_y("core1_stack") core1_stack[1024];
|
||||
|
||||
/*
|
||||
* Audiocore(pin, sideset)
|
||||
*
|
||||
@@ -203,7 +201,7 @@ static void audiocore_init(struct audiocore_obj *obj, size_t n_args, const mp_ob
|
||||
shared_context.out_pin = pin;
|
||||
shared_context.sideset_base = sideset_pin;
|
||||
initialized = true;
|
||||
multicore_launch_core1_with_stack(&core1_main, core1_stack, sizeof(core1_stack));
|
||||
multicore_launch_core1(&core1_main);
|
||||
uint32_t result = get_fifo_read_value_blocking(obj);
|
||||
if (result != 0) {
|
||||
multicore_reset_core1();
|
||||
|
||||
Reference in New Issue
Block a user