Closed henrik-nil-acc closed 6 months ago
Issues
0 New issues
0 Accepted issues
Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code
Hi @henrik-nil-acc. Just so I understand what the intent is: You want to keep the SMBus
object alive also after a close()
, I presume. Later, you open the bus again. Is it potential lack of setting the address on after subsequent open()
call that causes problems for you?
@kplindegaard, correct. I'm thinking it's a valid use-case and from the existing code in close() it looks like it might been intended to be supported since self._pec is set to it's initial value.
Fair point, thanks.
@henrik-nil-acc I'm on holiday but will make a new patch version soon.
Set address and _force_last to their initial values to be able to handle an open -> close -> open sequence.