Skip to content
Snippets Groups Projects
Commit 65a3ae66 authored by Luca Erbetta's avatar Luca Erbetta :rocket:
Browse files

[Misc] Bug fixes

parent 3e6c4b7d
No related branches found
No related tags found
No related merge requests found
#!/usr/bin/python #!/usr/bin/python3
# Skyward Build System Configuration File # Skyward Build System Configuration File
# #
......
...@@ -61,7 +61,7 @@ public: ...@@ -61,7 +61,7 @@ public:
// The device is compatible with SPI modes 0 and 3 // The device is compatible with SPI modes 0 and 3
uint8_t whoami = Bus::read(RegMap::WHO_AM_I); 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) if (whoami != whoami_value)
{ {
last_error = ERR_NOT_ME; last_error = ERR_NOT_ME;
......
#include <sensors/LSM6DS3H.h> #include <sensors/LSM6DS3H/LSM6DS3H.h>
// SPI1 // SPI1
typedef miosix::Gpio<GPIOA_BASE, 5> GpioSck; typedef miosix::Gpio<GPIOA_BASE, 5> GpioSck;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment