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.
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.