Fixed error with message SSID not accepting single digit numbers.

This commit is contained in:
Jonathan karras 2015-08-22 23:10:31 -06:00
parent 469740c86f
commit 6bd07702f7
1 changed files with 1 additions and 1 deletions

View File

@ -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;