summaryrefslogtreecommitdiff
path: root/src/drivers
diff options
context:
space:
mode:
authorjacqueline <me@jacqueline.id.au>2024-09-06 12:40:11 +1000
committerjacqueline <me@jacqueline.id.au>2024-09-06 12:40:11 +1000
commit172d31ec6d69d7372d46e1ba712a2a2187e19d2a (patch)
tree41f08579a311a53db975f0123c3dfafbb12e95b5 /src/drivers
parent0426dfd4f21861297850905bf27158659f9d959a (diff)
downloadtangara-fw-172d31ec6d69d7372d46e1ba712a2a2187e19d2a.tar.gz
Ignore comments within playlist files
Includes a general cleanup+restructure of playlist.cpp, and fixing the tests and benchmarks
Diffstat (limited to 'src/drivers')
-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);