From 6bd07702f77eb43fc452d28fb92980c692e51ffa Mon Sep 17 00:00:00 2001 From: Jonathan karras Date: Sat, 22 Aug 2015 23:10:31 -0600 Subject: [PATCH] Fixed error with message SSID not accepting single digit numbers. --- protocol/SimpleSerial.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/protocol/SimpleSerial.c b/protocol/SimpleSerial.c index 7cc37fe..03cc2a0 100644 --- a/protocol/SimpleSerial.c +++ b/protocol/SimpleSerial.c @@ -605,7 +605,7 @@ void ss_serialCallback(void *_buffer, size_t length, AX25Ctx *ctx) { } if (!VERBOSE && !SILENT) printf_P(PSTR("1\n")); } else if (buffer[0] == 's' && length > 1) { - if (length > 2) { + if (length > 3) { message_recip_ssid = 10+buffer[2]-48; } else { message_recip_ssid = buffer[1]-48;