Jacob Dahl
|
562062b303
|
batt_smbus: fix potential buffer overrun bug (#13904)
|
2020-01-24 11:01:25 +01:00 |
|
Beat Küng
|
32359168d6
|
smbus: fix invalid memory access in read_word()
read_word() expected 3 bytes (uint16_t + PEC byte), but was passed an
address to an uint16_t value.
write_word() is changed to be type-safe as well.
|
2019-11-07 10:56:27 +01:00 |
|
Daniel Agar
|
380cae18d1
|
clang-tidy: partially fix modernize-use-equals-default
|
2019-10-27 19:19:07 -04:00 |
|
Jake Dahl
|
d71fc31d8b
|
added an SMBus base class
|
2018-11-01 10:49:26 -04:00 |
|
Jake Dahl
|
d3b54c3599
|
more changes based on suggestions
|
2018-10-16 09:45:28 +02:00 |
|
Jake Dahl
|
985c5f4d73
|
changed I2C init() to a public function. Removed init() from constructor of SMBus base class
|
2018-10-16 09:45:28 +02:00 |
|
Jake Dahl
|
e0e411ea07
|
additional improvements
|
2018-10-16 09:45:28 +02:00 |
|
Jake Dahl
|
ad567fa537
|
I should really compile before pushing, fixed a scoping error on int result
|
2018-10-16 09:45:28 +02:00 |
|
Jake Dahl
|
1e1268f84b
|
missed a return of result
|
2018-10-16 09:45:28 +02:00 |
|
Jake Dahl
|
b2482b0e43
|
made changes based on reviewer feedback. Also added a bool option for block_read and block_write PEC, as some devices may not use the PEC
|
2018-10-16 09:45:28 +02:00 |
|
Jake Dahl
|
e5b2286756
|
added an SMBus base class
|
2018-10-16 09:45:28 +02:00 |
|