diff options
author | Gerhard Sittig <gerhard.sittig@gmx.net> | 2018-02-04 19:12:48 +0100 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2018-03-31 20:44:21 +0200 |
commit | 63bbdb445fc2ade82c15766b419c869a41ed8f38 (patch) | |
tree | 0f4eb14c5d3e347d31d712640db7ef8d2a71a292 /decoders/eeprom24xx/pd.py | |
parent | c2faaa6952073ba9305834728a768f9e7b5361fb (diff) | |
download | libsigrokdecode-63bbdb445fc2ade82c15766b419c869a41ed8f38.tar.gz libsigrokdecode-63bbdb445fc2ade82c15766b419c869a41ed8f38.zip |
instance: make sure oldpins array is available after reset
Introduce an oldpins_array_seed() helper routine, to make sure that each
call site which checks previous pin state will find valid data. This was
not always the case after decoder reset, which released the old pin data
while applications would not call srd_inst_new() again.
Preset newly allocated arrays with the default initial pin state, allow
optional application calls to specify differing initial values (when
specified by users), and keep the current state after first data was
processed.
Diffstat (limited to 'decoders/eeprom24xx/pd.py')
0 files changed, 0 insertions, 0 deletions