aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2016-07-11 11:41:49 -0400
committerKevin O'Connor <kevin@koconnor.net>2016-07-16 21:33:35 -0400
commit777a0b817bc01425d562e42354bf09463a1d7852 (patch)
treeb6d147d3a00de547e9e64ec32e8154da41e7db0c /scripts
parent4988ba9a715870f5424460bb0354d003fe8a5bb8 (diff)
downloadkutter-777a0b817bc01425d562e42354bf09463a1d7852.tar.gz
kutter-777a0b817bc01425d562e42354bf09463a1d7852.tar.xz
kutter-777a0b817bc01425d562e42354bf09463a1d7852.zip
serialhdl: Calculate baudadjust from MCU's baud instead of host baud
Store the baud rate the MCU is configured for in the "identify" data and use that rate when calculating the baudadjust parameter. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/buildcommands.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/buildcommands.py b/scripts/buildcommands.py
index 6bb47341..af9926ca 100644
--- a/scripts/buildcommands.py
+++ b/scripts/buildcommands.py
@@ -153,7 +153,7 @@ def build_identify(cmd_by_id, msg_to_id, responses, static_strings
data['commands'] = sorted(cmd_by_id.keys())
data['responses'] = sorted(responses)
data['static_strings'] = static_strings
- configlist = ['MCU', 'CLOCK_FREQ']
+ configlist = ['MCU', 'CLOCK_FREQ', 'SERIAL_BAUD']
data['config'] = dict((i, config['CONFIG_'+i]) for i in configlist
if 'CONFIG_'+i in config)
data['version'] = version