commit | 43601095b5825b981326ee29cc7cd3d2643a0131 | [log] [tgz] |
---|---|---|
author | Aaron Massey <aaronmassey@google.com> | Wed Jul 26 13:55:15 2023 -0600 |
committer | Carles CufĂ <carles.cufi@nordicsemi.no> | Thu Jul 27 10:17:37 2023 +0200 |
tree | 598d33d97dcc9e8f0bcb496f32209ec699ddbf6e | |
parent | d7c00ee7c25b48ca31ee6702dc6516786d98963a [diff] |
emul: sbs_gauge: Return err or unsupported feature The fuel gauge emulators will attempt to access a 0 pointer when running a backend emulator function that hasn't been implemented. Add an explicit runtime check to return -ENOTSUP to signify the emulator feature is not supported. We do not ASSERT here so we can write tests that are generic and can run with various emulators that support a variety of features. Signed-off-by: Aaron Massey <aaronmassey@google.com>