diff options
author | Uwe Hermann <uwe@hermann-uwe.de> | 2020-04-10 20:29:52 +0200 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2020-04-11 01:13:59 +0200 |
commit | 81bf080fdb9d6ef9b0357148a41e0610df75ab61 (patch) | |
tree | 04bb9fe979c99a6c6f9f56a5d2476b9b12eab3aa /decoders/adxl345 | |
parent | 4b0d57fc9fb99169f680f5175402e7718f17d053 (diff) | |
download | libsigrokdecode-81bf080fdb9d6ef9b0357148a41e0610df75ab61.tar.gz libsigrokdecode-81bf080fdb9d6ef9b0357148a41e0610df75ab61.zip |
adxl345: Fix scale factor in handle_reg_0x22().
According to the datasheet, this should be 1.25 (ms/LSB).
Diffstat (limited to 'decoders/adxl345')
-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 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): |