From 1fe967f266313f26f76f5b94800aad64dfdb3f5b Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Sat, 21 Jul 2012 21:58:20 +0200 Subject: srd: onewire_link: Annotations shouldn't be ALLCAPS. While states in the PD should be ALLCAPS per guidelines (for consistency), the annotations that a PD outputs (and are shown in a console via sigrok-cli or in a GUI) should be "normal" human-readable text/formatting usually, i.e. not ALLCAPS. --- decoders/onewire_network/onewire_network.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'decoders/onewire_network') diff --git a/decoders/onewire_network/onewire_network.py b/decoders/onewire_network/onewire_network.py index 2dba54a..ab11ea4 100644 --- a/decoders/onewire_network/onewire_network.py +++ b/decoders/onewire_network/onewire_network.py @@ -24,14 +24,14 @@ import sigrokdecode as srd # Dictionary of ROM commands and their names, next state. command = { - 0x33: ['READ ROM' , 'GET ROM' ], - 0x0f: ['CONDITIONAL READ ROM' , 'GET ROM' ], - 0xcc: ['SKIP ROM' , 'TRANSPORT' ], - 0x55: ['MATCH ROM' , 'GET ROM' ], - 0xf0: ['SEARCH ROM' , 'SEARCH ROM'], - 0xec: ['CONDITIONAL SEARCH ROM', 'SEARCH ROM'], - 0x3c: ['OVERDRIVE SKIP ROM' , 'TRANSPORT' ], - 0x69: ['OVERDRIVE MATCH ROM' , 'GET ROM' ], + 0x33: ['Read ROM' , 'GET ROM' ], + 0x0f: ['Conditional read ROM' , 'GET ROM' ], + 0xcc: ['Skip ROM' , 'TRANSPORT' ], + 0x55: ['Match ROM' , 'GET ROM' ], + 0xf0: ['Search ROM' , 'SEARCH ROM'], + 0xec: ['Conditional search ROM', 'SEARCH ROM'], + 0x3c: ['Overdrive skip ROM' , 'TRANSPORT' ], + 0x69: ['Overdrive match ROM' , 'GET ROM' ], } class Decoder(srd.Decoder): -- cgit v1.2.3-70-g09d2