From 6cb79af44d18a157fa9fe6c19e362846479ecee9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Cab=C3=A9?= Date: Sat, 14 Oct 2023 11:23:08 +0200 Subject: [PATCH] update to recent Zephyr version (3.1+) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Benjamin Cabé --- src/main.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 1128a5a..48dc74a 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1,6 +1,6 @@ -#include -#include -#include +#include +#include +#include #include #include @@ -12,7 +12,7 @@ int main() { setvbuf(stdout, NULL, _IONBF, 0); // get driver for the accelerometer - const struct device *iis2dlpc = device_get_binding(DT_LABEL(DT_INST(0, st_iis2dlpc))); + const struct device *iis2dlpc = DEVICE_DT_GET_ONE(st_iis2dlpc); if (iis2dlpc == NULL) { printf("Could not get IIS2DLPC device\n"); return 1;