Skip to content

Commit

Permalink
Cast string to char with send_line
Browse files Browse the repository at this point in the history
  • Loading branch information
sambertrdk committed Feb 20, 2025
1 parent dad85cd commit e19ed29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Matlab/Robolink.m
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ function check_connection(this)
function send_line(this, string)
% This is a private function.
% Sends a string of characters with a \n
write(this.COM, uint8([string, char(10)]));
write(this.COM, uint8([char(string), char(10)]));
end

function string = rec_line(this)
Expand Down

0 comments on commit e19ed29

Please sign in to comment.