   lcd.setCursor(0, 1);
   lcd.print("OFF: beep off");
 
-  int beepMode = initialise_boolean_select();
+  o_beepMode = initialise_boolean_select();
   alarm_set();
 
   lcd.clear();

  } else {

    pirOnOff = digitalRead(PIR_IN_PIN);
    Serial.println("PIRp called");
    pir_Mills = millis();
  }
}

void tvOnTimer()
{
  
  tvIsOnEvent = t.every((o_tvOnTime * 1000 * 60) , doTvOffTimer);
  t.stop(tvIsOffEvent);
}

void tvOffTimer()
{
  
  tvIsOffEvent = t.every((o_tvOffTime * 1000 * 60) , doTvOnTimer);
  t.stop(tvIsOnEvent);
}


  return 1;
}

