orgua / OneWireHub

OneWire slave device emulator
GNU General Public License v3.0
343 stars 86 forks source link

implement simple support for SKIP ROM #2

Closed Giermann closed 8 years ago

Giermann commented 8 years ago

The most correct implementation would be to handle the following commands by all slaves in the list. But this would require a global duty() method that calls all attached slaves. Further it would need to handle simultaneous write attempts from slaves.

Given the implemenation above, the OneWireHub would at least act correct whenever only a single slave is attached to it. The master would need to assure to only use master-write-only commands when using SKIP ROM with multiple slaves attached. This change would allow single-slave busses to function properly and to implement OWFS simultaneous temperature/voltage reading, although the "Convert T" and "Convert V" commands are currently simply ignored by design.

orgua commented 8 years ago

good catch with my slave... = 0 instead of = nullptr mistake.