From 6a01186521e7a91f7b2321d82b5efd1413792c1a Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Wed, 17 Aug 2022 06:01:12 -0400 Subject: [PATCH] changed serial_input to serial_string --- cubesatsim/cubesatsim.ino | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/cubesatsim/cubesatsim.ino b/cubesatsim/cubesatsim.ino index 0cd242d8..74ed9de1 100644 --- a/cubesatsim/cubesatsim.ino +++ b/cubesatsim/cubesatsim.ino @@ -12,7 +12,6 @@ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * - * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ @@ -3724,7 +3723,7 @@ void prompt_for_input() { Serial.println("Enter callsign in all capitals: "); get_serial_string(); - strcpy(callsign, serial_input); + strcpy(callsign, serial_string); Serial.println("Callsign updated!"); /* echo @@ -3790,11 +3789,11 @@ void get_serial_string() { while ((input != '\n') && (input!= '\r') && (i < 128)) { if (Serial.available() > 0) { input = Serial.read(); - serial_input[i++] = input; + serial_string[i++] = input; Serial.print(input); } sleep(0.1); } - serial_input[i] = 0; + serial_string[i] = 0; Serial.println("End of string"); }