 		case 'G': case 'g':
 			code = strtoul(&buf[1], &endptr, 10);
 			if (endptr == &buf[1]) {
-				Serial.println(F("ERROR: missing G command code"));
+				sendMsg(F("ERROR: missing G command code"));
 				return false;
 			}
 			if (code == 0) {

	servoH.detach();
}

void setup() {
	// setup serial port
	Serial.begin(9600);

	// setup MicroView
	setupMicroView();

	moveServoHRot(defaultServoPos, servoSpeed, false, false);
	moveServoH(defaultServoPos, servoSpeed, true, true);

#ifdef USE_ESP8266_LIB
	// ESP8266
	setup_ESP8266();
#endif
	msg = String(F("READY\n"));
	sendMsg(msg);
}

/*
