Skip to content

Commit cd83e88

Browse files
committed
revert interface issue
1 parent 8f681e8 commit cd83e88

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/sensor/interface.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,9 +143,6 @@ int ssi_write(enum sensor_interface_dev dev, const uint8_t *buf, uint32_t num_by
143143
#endif
144144
case SENSOR_INTERFACE_SPEC_I2C:
145145
return i2c_write_dt(sensor_interface_dev_i2c[dev], buf, num_bytes);
146-
case SENSOR_INTERFACE_SPEC_EXT:
147-
if (ext_ssi != NULL)
148-
return ext_ssi->ext_write(ext_addr, buf, num_bytes);
149146
default:
150147
return -1;
151148
}
@@ -182,6 +179,9 @@ int ssi_read(enum sensor_interface_dev dev, uint8_t *buf, uint32_t num_bytes)
182179
#endif
183180
case SENSOR_INTERFACE_SPEC_I2C:
184181
return i2c_read_dt(sensor_interface_dev_i2c[dev], buf, num_bytes);
182+
case SENSOR_INTERFACE_SPEC_EXT:
183+
if (ext_ssi != NULL)
184+
return ext_ssi->ext_write(ext_addr, buf, num_bytes);
185185
default:
186186
return -1;
187187
}

0 commit comments

Comments
 (0)