commit | 1d8750ddd6942579eaea920d6c886c196fbfcace | [log] [tgz] |
---|---|---|
author | Aaron Massey <aaronmassey@google.com> | Mon Nov 14 10:03:15 2022 -0700 |
committer | Carles CufĂ <carles.cufi@nordicsemi.no> | Wed Nov 16 11:19:21 2022 +0100 |
tree | 1f2b57d0a0685ab27c93373cf6dc3801799c0133 | |
parent | 1cff6099f7381032508f8a17c6349aa5a1ef5183 [diff] |
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>