Update cubesatsim.ino

pull/152/head
alanbjohnston 4 years ago committed by GitHub
parent 5a258d5e61
commit c3581864e2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1577,9 +1577,9 @@ int upper_digit(int number) {
void print_string(char *string) void print_string(char *string)
{ {
int count = 0; int count = 0;
while ((count++ < 250) && (string[i] != NULL)) while ((count < 250) && (string[count] != NULL))
{ {
Serial.print(string[i++]); Serial.print(string[count++]);
} }
Serial.println(" "); Serial.println(" ");
} }

Loading…
Cancel
Save

Powered by TurnKey Linux.