   Serial.println("Motor on");
 }
 
-void retransmitOff() {
-  retransmit = false;
+void relayOff() {
+  relay = false;
   Serial.println("Lidar data disabled");
 }
 
-void retransmitOn() {
-  retransmit = true;
+void relayOn() {
+  relay = true;
   Serial.println("Lidar data enabled");
 }
 

  Serial.println("  HideRPM");
  Serial.println("  MotorOff");
  Serial.println("  MotorOn");
  Serial.println("  RetransmitOff");
  Serial.println("  RetransmitOn");
}

void getConfig() {


  sCmd.readSerial();  // check for incoming serial commands

  // read byte from LIDAR and relay to USB
  if (Serial1.available() > 0) {
    inByte = Serial1.read();  // get incoming byte:
    if (relay) {
      Serial.print(inByte, BYTE);  // relay
    }
    decodeData(inByte);
  }
