Moved away from i2c_result_t to int8_t

This commit is contained in:
David Volovskiy
2025-10-19 12:58:07 -04:00
parent 870fd8d01f
commit 8574216612
3 changed files with 24 additions and 24 deletions

View File

@@ -28,16 +28,16 @@ void watch_enable_i2c(void) {}
void watch_disable_i2c(void) {}
i2c_result_t watch_i2c_send(int16_t addr, uint8_t *buf, uint16_t length) {
return I2C_RESULT_SUCCESS;
int8_t watch_i2c_send(int16_t addr, uint8_t *buf, uint16_t length) {
return 0;
}
i2c_result_t watch_i2c_receive(int16_t addr, uint8_t *buf, uint16_t length) {
return I2C_RESULT_SUCCESS;
int8_t watch_i2c_receive(int16_t addr, uint8_t *buf, uint16_t length) {
return 0;
}
i2c_result_t watch_i2c_write8(int16_t addr, uint8_t reg, uint8_t data) {
return I2C_RESULT_SUCCESS;
int8_t watch_i2c_write8(int16_t addr, uint8_t reg, uint8_t data) {
return 0;
}
uint8_t watch_i2c_read8(int16_t addr, uint8_t reg) {