Add comment explaining new behaviour
This commit is contained in:
parent
dd7bb577ee
commit
7718ea5dda
1 changed files with 3 additions and 0 deletions
|
@ -118,6 +118,9 @@ impl TTY{
|
|||
}
|
||||
else {
|
||||
log::debug!("Read an empty string. Possible read error.");
|
||||
//Due to a linux kernel power-saving setting that is overly complicated to fix,
|
||||
//Serial connections will drop for a moment before re-opening, at seemingly-random
|
||||
//intervals. The below is an attempt to catch and recover from this behaviour.
|
||||
self.failed_read_count += 1;
|
||||
if self.failed_read_count >= 15{
|
||||
self.failed_read_count = 0;
|
||||
|
|
Loading…
Add table
Reference in a new issue