From 9a367496466f5f856e617bee6225a38a195dd36a Mon Sep 17 00:00:00 2001 From: Dave Marples Date: Sat, 25 May 2024 18:16:28 +0100 Subject: [PATCH] Fix miscalculation of full UART channel --- Src/orbuculum.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Src/orbuculum.c b/Src/orbuculum.c index d65cfbf4..3415c89c 100644 --- a/Src/orbuculum.c +++ b/Src/orbuculum.c @@ -552,6 +552,12 @@ bool _processOptions( int argc, char *argv[], struct RunTime *r ) /* ... and dump the config if we're being verbose */ genericsReport( V_INFO, "orbuculum version " GIT_DESCRIBE EOL ); + if ( r->options->port ) + { + /* For the base of a UART only 8 of 10 bits contain useful data */ + r->options->dataSpeed = ( r->options->dataSpeed * 8 ) / 10; + } + if ( r->options->intervalReportTime ) { genericsReport( V_INFO, "Report Intv : %d mS" EOL, r->options->intervalReportTime );