From: Uwe Hermann Date: Sat, 11 Apr 2020 12:50:56 +0000 (+0200) Subject: adxl345: Fix incorrect rate value in handle_reg_0x2c(). X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=327a281f3be51d14845a645b6018f06cc6f4fe7f;p=libsigrokdecode.git adxl345: Fix incorrect rate value in handle_reg_0x2c(). --- 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):