diff options
-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): |