From fe95ea221b2b88e9cb52a6378ff2018ee752094b Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Thu, 22 Dec 2016 23:47:46 -0500 Subject: build: Define DECL_CONSTANT mechanism for defining exported constants Add a DECL_CONSTANT macro to allow the firmware to define constants that are to be exported to the host during the "identify" phase. This replaces the existing hardcoded mechanism of scanning the Kconfig header file for certain constants. Signed-off-by: Kevin O'Connor --- klippy/serialhdl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'klippy/serialhdl.py') diff --git a/klippy/serialhdl.py b/klippy/serialhdl.py index 2a539cf1..2e4bc467 100644 --- a/klippy/serialhdl.py +++ b/klippy/serialhdl.py @@ -101,7 +101,7 @@ class SerialReader: self.msgparser.process_identify(dictionary, decompress=False) est_clock = 1000000000000. if pace: - est_clock = self.msgparser.config['CLOCK_FREQ'] + est_clock = float(self.msgparser.config['CLOCK_FREQ']) self.serialqueue = self.ffi_lib.serialqueue_alloc(self.ser.fileno(), 1) self.est_clock = est_clock self.last_ack_time = time.time() -- cgit v1.2.3-70-g09d2