1
0
forked from me/IronOS

Wake Halleffect correctly helps.....

This commit is contained in:
Ben V. Brown
2020-10-31 00:15:30 +11:00
parent ba5bd39e43
commit 1f4ed60838
4 changed files with 111 additions and 4 deletions

View File

@@ -10,8 +10,8 @@
#include "I2C_Wrapper.hpp"
bool Si7210::detect() {
uint8_t temp;
return FRToSI2C::Mem_Read(SI7210_ADDRESS, SI7210_REG_ID, &temp, 1);
//Cant use normal probe as reg 0x00 is not used
return FRToSI2C::wakePart(SI7210_ADDRESS);
}
bool Si7210::init() {