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/console.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'klippy/console.py') diff --git a/klippy/console.py b/klippy/console.py index 94476007..1dd99ca9 100755 --- a/klippy/console.py +++ b/klippy/console.py @@ -27,7 +27,7 @@ class KeyboardReader: self.reactor.unregister_timer(self.connect_timer) return self.reactor.NEVER def update_evals(self, eventtime): - f = self.ser.msgparser.config.get('CLOCK_FREQ', 1) + f = int(self.ser.msgparser.config.get('CLOCK_FREQ', 1)) c = self.ser.get_clock(eventtime) self.eval_globals['freq'] = f self.eval_globals['clock'] = int(c) -- cgit v1.2.3-70-g09d2