You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
73: Use File.read_exact instead of File.read r=eldruin a=jath03
As the documentation says, `I2CDevice.read` is supposed to "fill the provided slice", which `File.read` on it's own doesn't do. Using `File.read_exact` instead will accomplish the intended behavior.
https://doc.rust-lang.org/std/fs/struct.File.html#method.read_exact-1
Co-authored-by: Jack <jackthughes@yahoo.com>
0 commit comments