 					(i == servoMoveCount - 1 ? false : wait), (i == servoMoveCount - 1 ? true : false));
 			}
 			if (i != 0) {
-				sendMsg(F("OK"));
-			}
+				sendMsg(F("OK\n"));
+				return true;
+			}
+			return false;
 			break;
 		case 'F': case 'f':
 			code = strtoul(&buf[1], &endptr, 10);
 			if (endptr == &buf[1]) {
-				sendMsg(F("ERROR: missing F speed parameter"));
+				sendMsg(F("ERROR: missing F speed parameter\n"));
 				return false;
 			}
 			if (code >= 0 && code <= 255) {
 				servoSpeed = code;
-				sendMsg(F("OK"));
+				sendMsg(F("OK\n"));
 				return true;
 			} else {
 				String msg = String(F("ERROR: invalid F speed parameter: ")) + String(code, DEC) + String("\n");

extern int chlID;

void setup_ESP8266(void) {
	while (!wifi.begin());
	while (!wifi.Initialize(STA, SSID, PASSWORD));
	wifi.confMux(1);
	wifi.confServer(1, 23);
}

#endif

void sendMsg(String msg) {

						return false;
					}
				} else {
					sendMsg(F("ERROR: invalid G command wait flag (missing value)\n"));
					return false;
				}
			}
