libhal-google / libhal-util

libhal utility functions, interface wrappers, and types to help manage usage of embedded resources
Apache License 2.0
1 stars 4 forks source link

i2c utilities cannot infer `hal::never_timeout()` as a timeout concept default parameter #47

Closed kammce closed 1 year ago

kammce commented 1 year ago

Attempting to do something like

hal::write(i2c, 0xAA, std::array{ hal::byte(0x01) });

Will result in a compiler error saying that p_timeout:auto cannot be inferred. It should default to hal::never_timeout but does not.