summaryrefslogtreecommitdiff
path: root/src/drivers/test/test_dac.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/drivers/test/test_dac.cpp')
-rw-r--r--src/drivers/test/test_dac.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/drivers/test/test_dac.cpp b/src/drivers/test/test_dac.cpp
index fab258e4..01583e34 100644
--- a/src/drivers/test/test_dac.cpp
+++ b/src/drivers/test/test_dac.cpp
@@ -13,7 +13,9 @@ namespace drivers {
TEST_CASE("dac configuration", "[integration]") {
I2CFixture i2c;
GpioExpander expander;
- std::unique_ptr<AudioDac> dac = AudioDac::create(&expander).value();
+ cpp::result<AudioDac*, AudioDac::Error> dac_res = AudioDac::create(&expander);
+ REQUIRE(dac_res.has_value());
+ std::unique_ptr<AudioDac> dac(dac_res.value());
auto power_state = dac->ReadPowerState();