commit | 6783549b008bfb24db448cc00a3845baf56410d4 | [log] [tgz] |
---|---|---|
author | Marek BehĂșn <marek.behun@nic.cz> | Fri Sep 24 23:07:07 2021 +0200 |
committer | Stefan Roese <sr@denx.de> | Fri Oct 01 11:07:13 2021 +0200 |
tree | 6e0a38737770af1451084464cf6b645fbe2c2f16 | |
parent | fd935e9364f82a99482e0d020de80633513a704a [diff] |
tools: kwboot: Check whether baudrate was set to requested value The tcsetattr() function can return 0 even if baudrate was not changed. Check whether baudrate was changed to requested value, and in case of arbitrary baudrate, check whether the set value is within 3% tolerance. Signed-off-by: Marek BehĂșn <marek.behun@nic.cz> Reviewed-by: Stefan Roese <sr@denx.de>