change foo
This commit is contained in:
1 parent
8357412036
commit
98d3dda32e
1 file changed
+2
-2
@@ -14,8 +14,8 @@ void EmptyI2CSensor::setup(){
|
||||
}
|
||||
|
||||
void EmptyI2CSensor::update(){
|
||||
uint8_t data[] = {10};
|
||||
this->read_register(0x0, &data, 0x1);
|
||||
uint8_t* data = 10;
|
||||
this->read_register(0x0, &data, (size_t)0x1);
|
||||
ESP_LOGI(TAG, "sensor output: %d", data[0]);
|
||||
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user