 const int limT1   = 310;       // T1 high alarm (approx. 50 deg C)
 const int limT2   = 310;       // T2 high alarm (approx. 50 deg C)
 
-// parse and process serial input
-void SerialParser(void) {
+
+// parse serial input
+void SerialParse(void) {
   // read serial input
   int ByteCount = Serial.readBytesUntil(nl,Buffer,sizeof(Buffer));
   String read_ = String(Buffer);

*/

// global variables
char Buffer[64];         // buffer for parsing serial input

// constants
const String vers = "0.1";     // version of this firmware

  
  // separate command from associated data
  int idx = read_.indexOf(sp);
  cmd = read_.substring(0,idx);
  cmd.trim();
  cmd.toUpperCase();

  // extract data. toInt() returns 0 on error
  String data = read_.substring(idx+1);
  data.trim();
  pv = data.toInt();
}


// dispatch commands
void CommandDispatch(void) {
  // process commands
  if (cmd == "Q") {
    analogWrite(pinQ1, max(0,min(limQ1,pv)));
    analogWrite(pinQ2, 0);
  }
