Skip to content

Commit 35bf32f

Browse files
author
jfpoilpret
committed
Fix bad code spotted by SonarQube.
1 parent 421667b commit 35bf32f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cores/fastarduino/soft_uart.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ namespace serial::soft
286286
}
287287

288288
// Push value if no error
289-
if (!errors.has_errors)
289+
if (errors.has_errors == 0)
290290
{
291291
errors.queue_overflow = !in_().queue().push_(value);
292292
// Wait for 1st stop bit

0 commit comments

Comments
 (0)