]> sigrok.org Git - libsigrokdecode.git/commitdiff
adxl345: Fix scale factor in handle_reg_0x22().
authorUwe Hermann <redacted>
Fri, 10 Apr 2020 18:29:52 +0000 (20:29 +0200)
committerUwe Hermann <redacted>
Fri, 10 Apr 2020 23:13:59 +0000 (01:13 +0200)
According to the datasheet, this should be 1.25 (ms/LSB).

decoders/adxl345/pd.py

index 8b3a61921e8782811e72140a219d7c86d74204d9..576498ee42821d23769fc57c72f62c4f4eb2ab73 100644 (file)
@@ -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):