zephyr/subsys/emul
Aaron Massey 1d8750ddd6 emul_sbs_gauge: Don't set bad val in i2c msg buf
The SBS Gauge emulator would set the I2C buffer message with a value from
the emulator's custom read function even on a read error instead of just
returning. This behavior may be improperly relied upon by future tests.

Return early on register read before setting the i2c message buffer value
in the emulator.

Signed-off-by: Aaron Massey <aaronmassey@google.com>
2022-11-16 11:19:21 +01:00
..
espi emul: Update EMUL_DEFINE usages in emulators 2022-08-17 15:47:52 +00:00
i2c emul_sbs_gauge: Don't set bad val in i2c msg buf 2022-11-16 11:19:21 +01:00
CMakeLists.txt emul: Remove empty files 2022-08-11 11:17:04 -05:00
emul.c emul: remove name param from bus register APIs 2022-07-19 15:52:36 -05:00
emul_bmi160.c emul: Update EMUL_DEFINE usages in emulators 2022-08-17 15:47:52 +00:00
Kconfig emul: Add sbs_gauge emulator 2022-08-17 08:04:17 +00:00