From 65a3ae665a9f3ffc7825c6a816a95a01d4dd56a1 Mon Sep 17 00:00:00 2001 From: Luca Erbetta <luca.erbetta@skywarder.eu> Date: Sun, 13 Oct 2019 05:19:12 +0200 Subject: [PATCH] [Misc] Bug fixes --- sbs | 2 +- src/shared/sensors/LSM6DS3H/LSM6DS3H.h | 2 +- src/tests/drivers/test-IMU.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sbs b/sbs index a64fe4c14..8a4449230 100755 --- a/sbs +++ b/sbs @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python3 # Skyward Build System Configuration File # diff --git a/src/shared/sensors/LSM6DS3H/LSM6DS3H.h b/src/shared/sensors/LSM6DS3H/LSM6DS3H.h index 1942dde33..6ac0d3748 100644 --- a/src/shared/sensors/LSM6DS3H/LSM6DS3H.h +++ b/src/shared/sensors/LSM6DS3H/LSM6DS3H.h @@ -61,7 +61,7 @@ public: // The device is compatible with SPI modes 0 and 3 uint8_t whoami = Bus::read(RegMap::WHO_AM_I); - printf("expected: %x actual: %x\n", whoami_value,whoami); + printf("[LSM] expected: %x actual: %x\n", whoami_value,whoami); if (whoami != whoami_value) { last_error = ERR_NOT_ME; diff --git a/src/tests/drivers/test-IMU.cpp b/src/tests/drivers/test-IMU.cpp index 06e5aadd8..ee8fe8702 100644 --- a/src/tests/drivers/test-IMU.cpp +++ b/src/tests/drivers/test-IMU.cpp @@ -1,4 +1,4 @@ -#include <sensors/LSM6DS3H.h> +#include <sensors/LSM6DS3H/LSM6DS3H.h> // SPI1 typedef miosix::Gpio<GPIOA_BASE, 5> GpioSck; -- GitLab