diff options
author | Uwe Hermann <uwe@hermann-uwe.de> | 2020-04-11 14:50:56 +0200 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2020-04-11 14:51:57 +0200 |
commit | 327a281f3be51d14845a645b6018f06cc6f4fe7f (patch) | |
tree | cce3a2177755d1ae462f7af6bbc33ea9e706088a /decoders | |
parent | 2833e43dad776f2aedee0377e1dbb545e8cccd6c (diff) | |
download | libsigrokdecode-327a281f3be51d14845a645b6018f06cc6f4fe7f.tar.gz libsigrokdecode-327a281f3be51d14845a645b6018f06cc6f4fe7f.zip |
adxl345: Fix incorrect rate value in handle_reg_0x2c().
Diffstat (limited to 'decoders')
-rw-r--r-- | decoders/adxl345/pd.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/decoders/adxl345/pd.py b/decoders/adxl345/pd.py index 4902dc5..bc442ba 100644 --- a/decoders/adxl345/pd.py +++ b/decoders/adxl345/pd.py @@ -246,7 +246,7 @@ class Decoder(srd.Decoder): bits_values = self.interpret_bits(data, bits) start_index, stop_index = 0, 3 - rate = self.get_decimal_number(bits_values, start_index, start_index) + rate = self.get_decimal_number(bits_values, start_index, stop_index) self.putbs([Ann.REG_DATA, ['%f' % rate_code[rate]]], stop_index, start_index) def handle_reg_0x2d(self, data): |