 					} else if (code == 1) {
 						wait = true;
 					} else {
-						Serial.print(F("ERROR: invalid G command wait flag, bad value: "));
-						Serial.println(code, DEC);
+						String msg = String(F("ERROR: invalid G command wait flag, bad value: ")) + String(code, DEC) + String("\n");
+						sendMsg(msg);
 						return false;
 					}
 				} else {
-					Serial.println(F("ERROR: invalid G command wait flag (missing value)"));
+					sendMsg(F("ERROR: invalid G command wait flag (missing value)"));
 					return false;
 				}
 			}

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


#include <VarSpeedServo.h>

#define USE_ESP8266_LIB
#undef USE_ESP8266_LIB
#ifdef USE_ESP8266_LIB
#include "uartWIFI.h"
#endif

// MicroView
int SCREEN_WIDTH = uView.getLCDWidth();
int SCREEN_HEIGHT = uView.getLCDHeight();
MicroViewWidget *widgetL, *widgetR, *widgetRot, *widgetHRot, *widgetH;

// Servos
const uint8_t servoPinL = 2;
