From 327a281f3be51d14845a645b6018f06cc6f4fe7f Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Sat, 11 Apr 2020 14:50:56 +0200 Subject: adxl345: Fix incorrect rate value in handle_reg_0x2c(). --- decoders/adxl345/pd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'decoders') 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): -- cgit v1.2.3-70-g09d2