The ds1307 protocol decoder currently displays frequency values which
are off by a factor of 1000, e.g. 32768kHz. The patch below adds the
missing decimal point to match the Dallas/Maxim datasheet.
diff --git a/decoders/ds1307/pd.py b/decoders/ds1307/pd.py
index b784b6d..c98b21d 100644
--- a/decoders/ds1307/pd.py
+++ b/decoders/ds1307/pd.py
@@ -39,9 +39,9 @@ bits = (
rates = {
0b00: '1Hz',
- 0b01: '4096kHz',
- 0b10: '8192kHz',
- 0b11: '32768kHz',
+ 0b01: '4.096kHz',
+ 0b10: '8.192kHz',
+ 0b11: '32.768kHz',
}
DS1307_I2C_ADDRESS = 0x68
Jon
------------------------------------------------------------------------------
_______________________________________________
sigrok-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sigrok-devel