diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2016-07-11 11:41:49 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2016-07-16 21:33:35 -0400 |
commit | 777a0b817bc01425d562e42354bf09463a1d7852 (patch) | |
tree | b6d147d3a00de547e9e64ec32e8154da41e7db0c /scripts/buildcommands.py | |
parent | 4988ba9a715870f5424460bb0354d003fe8a5bb8 (diff) | |
download | kutter-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/buildcommands.py')
-rw-r--r-- | scripts/buildcommands.py | 2 |
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 |