From: Uwe Hermann Date: Fri, 10 Apr 2020 18:29:52 +0000 (+0200) Subject: adxl345: Fix scale factor in handle_reg_0x22(). X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=81bf080fdb9d6ef9b0357148a41e0610df75ab61;p=libsigrokdecode.git adxl345: Fix scale factor in handle_reg_0x22(). According to the datasheet, this should be 1.25 (ms/LSB). --- diff --git a/decoders/adxl345/pd.py b/decoders/adxl345/pd.py index 8b3a619..576498e 100644 --- a/decoders/adxl345/pd.py +++ b/decoders/adxl345/pd.py @@ -173,7 +173,7 @@ class Decoder(srd.Decoder): error_messages['dis_single_double']) def handle_reg_0x22(self, data): - self.handle_reg_with_scaling_factor(data, 62.5, 'Latent', 's', + self.handle_reg_with_scaling_factor(data, 1.25, 'Latent', 's', error_messages['dis_double']) def handle_reg_0x23(self, data):