Skip to content

Commit

Permalink
Fix legacy port reflection when monitoring is not switched on
Browse files Browse the repository at this point in the history
  • Loading branch information
mubes committed Oct 27, 2024
1 parent 2cb0bd6 commit 3dfda27
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
7 changes: 2 additions & 5 deletions Src/orbuculum.c
Original file line number Diff line number Diff line change
Expand Up @@ -1009,11 +1009,8 @@ static void _handleBlock( struct RunTime *r, ssize_t fillLevel, uint8_t *buffer

if ( r->usingOFLOW )
{
if ( r->options->intervalReportTime )
{
/* We need to decode this so we can get the stats out of it .. we don't bother if we don't need stats */
OFLOWPump( &r->oflow, buffer, fillLevel, _OFLOWpacketRxed, r );
}
/* We need to decode this so we can get the stats out of it, and to reflect it out */
OFLOWPump( &r->oflow, buffer, fillLevel, _OFLOWpacketRxed, r );

/* ...and reflect this packet to the outgoing OFLOW channels, if we don't need to reconstruct them */
if ( !r->options->useTPIU )
Expand Down
6 changes: 3 additions & 3 deletions Src/symbols.c
Original file line number Diff line number Diff line change
Expand Up @@ -262,9 +262,9 @@ static enum LineType _getLineType( char *sourceLine, char *p1, char *p2, char *p
if ( 2 == sscanf( sourceLine, "%[0-9a-fA-F] <%[^>]>", p1, p2 ) )
{
/* Demangled C++ names may have multiple ">" characters. Expand until last one. */
const char *const beg = strchr(sourceLine, '<') + 1;
const char *const end = strrchr(beg, '>');
(void)memcpy(p2, beg, end - beg);
const char *const beg = strchr( sourceLine, '<' ) + 1;
const char *const end = strrchr( beg, '>' );
( void )memcpy( p2, beg, end - beg );
p2[end - beg] = '\0';
return LT_PROC_LABEL;
}
Expand Down

0 comments on commit 3dfda27

Please sign in to comment.