Skip to content

Commit 6d0823d

Browse files
Fix AudioFlinger initialization
1 parent c1ee9ac commit 6d0823d

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

internal_filesystem/lib/mpos/board/fri3d_2024.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -311,10 +311,7 @@ def adc_to_voltage(adc_value):
311311
}
312312

313313
# Initialize AudioFlinger with I2S and buzzer
314-
AudioFlinger.init(
315-
i2s_pins=i2s_pins,
316-
buzzer_instance=buzzer
317-
)
314+
AudioFlinger(i2s_pins=i2s_pins, buzzer_instance=buzzer)
318315

319316
# === LED HARDWARE ===
320317
import mpos.lights as LightsManager

internal_filesystem/lib/mpos/board/waveshare_esp32_s3_touch_lcd_2.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -110,11 +110,7 @@ def adc_to_voltage(adc_value):
110110
except Exception as e:
111111
print(f"Warning: powering off camera got exception: {e}")
112112

113-
# === AUDIO HARDWARE ===
114-
from mpos import AudioFlinger
115-
116-
# Note: Waveshare board has no buzzer or I2S audio
117-
AudioFlinger.init()
113+
# === AUDIO HARDWARE: Waveshare board has no buzzer or I2S audio so no need to initialize.
118114

119115
# === LED HARDWARE ===
120116
# Note: Waveshare board has no NeoPixel LEDs

0 commit comments

Comments
 (0)