diff --git a/app/boards/arm/zswatch_nrf5340/zswatch_nrf5340_cpuapp_5.overlay b/app/boards/arm/zswatch_nrf5340/zswatch_nrf5340_cpuapp_5.overlay index 4da685b1..eea3d212 100644 --- a/app/boards/arm/zswatch_nrf5340/zswatch_nrf5340_cpuapp_5.overlay +++ b/app/boards/arm/zswatch_nrf5340/zswatch_nrf5340_cpuapp_5.overlay @@ -223,7 +223,7 @@ regulator-always-on; }; - regulator_buzzer_usb: BUCK2 { + regulator_buzzer: BUCK2 { regulator-min-microvolt = <3000000>; regulator-max-microvolt = <3000000>; regulator-init-microvolt = <3000000>; diff --git a/app/src/drivers/zsw_buzzer.c b/app/src/drivers/zsw_buzzer.c index f5fcc1d5..0478acb2 100644 --- a/app/src/drivers/zsw_buzzer.c +++ b/app/src/drivers/zsw_buzzer.c @@ -134,7 +134,7 @@ struct note_duration_t beep_song[] = { }; static const struct pwm_dt_spec buzzer_dt = PWM_DT_SPEC_GET(DT_ALIAS(buzzer_pwm)); -static const struct device *const reg_dev = DEVICE_DT_GET_OR_NULL(DT_NODELABEL(regulator_buzzer_usb)); +static const struct device *const reg_dev = DEVICE_DT_GET_OR_NULL(DT_NODELABEL(regulator_buzzer)); K_TIMER_DEFINE(buzzer_timer, pattern_timer_timeout, NULL);