Skip to content

Commit

Permalink
Terminate string to remove delimeter at the end
Browse files Browse the repository at this point in the history
  • Loading branch information
knro committed Dec 1, 2024
1 parent 436d7c5 commit daaa7a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/focuser/moonlite_dro.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,7 @@ bool MoonLiteDRO::isMoving()

tcflush(PortFD, TCIOFLUSH);

resp[3] = '\0';
resp[2] = '\0';

LOGF_DEBUG("RES <%s>", resp);

Expand Down

0 comments on commit daaa7a4

Please sign in to comment.