Skip to content

Commit

Permalink
Fix miscalculation of full UART channel
Browse files Browse the repository at this point in the history
  • Loading branch information
mubes committed May 25, 2024
1 parent 5bfe789 commit 9a36749
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Src/orbuculum.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down

0 comments on commit 9a36749

Please sign in to comment.