summaryrefslogtreecommitdiff
path: root/src/drivers/test
diff options
context:
space:
mode:
authorjacqueline <me@jacqueline.id.au>2024-09-09 15:15:00 +1000
committerjacqueline <me@jacqueline.id.au>2024-09-09 15:15:00 +1000
commit2b1a01705d62d08cefd6816ba108c5cae48a50ac (patch)
tree20ba16a6259ffc335dbcded84fa6bcbe327e9d84 /src/drivers/test
parent9475d10d1000c7e21a7ea311b0c8ee6a72ef46c4 (diff)
parentacdc9789c90ed6f083d054cd07930e020123457f (diff)
downloadtangara-fw-2b1a01705d62d08cefd6816ba108c5cae48a50ac.tar.gz
Merge branch 'main' into jqln/tts
Diffstat (limited to 'src/drivers/test')
-rw-r--r--src/drivers/test/test_samd.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/drivers/test/test_samd.cpp b/src/drivers/test/test_samd.cpp
index c466d88e..96248377 100644
--- a/src/drivers/test/test_samd.cpp
+++ b/src/drivers/test/test_samd.cpp
@@ -4,6 +4,7 @@
* SPDX-License-Identifier: GPL-3.0-only
*/
+#include "drivers/nvs.hpp"
#include "drivers/samd.hpp"
#include <cstdint>
@@ -16,7 +17,8 @@ namespace drivers {
TEST_CASE("samd21 interface", "[integration]") {
I2CFixture i2c;
- auto samd = std::make_unique<Samd>();
+ std::unique_ptr<drivers::NvsStorage> nvs{drivers::NvsStorage::OpenSync()};
+ auto samd = std::make_unique<Samd>(*nvs);
REQUIRE(samd);