summaryrefslogtreecommitdiff
path: root/src/audio
diff options
context:
space:
mode:
Diffstat (limited to 'src/audio')
-rw-r--r--src/audio/audio_fsm.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/audio/audio_fsm.cpp b/src/audio/audio_fsm.cpp
index 1b6b6cc8..6ea4f60d 100644
--- a/src/audio/audio_fsm.cpp
+++ b/src/audio/audio_fsm.cpp
@@ -83,7 +83,7 @@ void AudioState::react(const OutputModeChanged& ev) {
// TODO: handle SetInUse
ESP_LOGI(kTag, "output mode changed");
auto new_mode = sServices->nvs().OutputMode();
- switch (new_mode.get()) {
+ switch (new_mode) {
case drivers::NvsStorage::Output::kBluetooth:
sOutput = sBtOutput;
break;
@@ -118,10 +118,10 @@ void Uninitialised::react(const system_fsm::BootComplete& ev) {
sBtOutput.reset(new BluetoothAudioOutput(stream, sServices->bluetooth()));
auto& nvs = sServices->nvs();
- sI2SOutput->SetMaxVolume(nvs.AmpMaxVolume().get());
- sI2SOutput->SetVolumeDb(nvs.AmpCurrentVolume().get());
+ sI2SOutput->SetMaxVolume(nvs.AmpMaxVolume());
+ sI2SOutput->SetVolumeDb(nvs.AmpCurrentVolume());
- if (sServices->nvs().OutputMode().get() ==
+ if (sServices->nvs().OutputMode() ==
drivers::NvsStorage::Output::kHeadphones) {
sOutput = sI2SOutput;
} else {