 }
 
 
-class MainViewController: UIViewController {
+class MainViewController: UIViewController, MainViewControllerDelegate {
 
     @IBOutlet weak var menuView: CVCalendarMenuView!
     @IBOutlet weak var calendarView: CVCalendarView!

    
    func dereferenceModeController() {
        
        pinIoViewController = nil
        uartViewController = nil
        deviceInfoViewController = nil
        controllerViewController = nil
        dfuViewController = nil
    }
    

}

    
    
    
    private var connectionTimer:NSTimer?
    private let cbcmQueue = dispatch_queue_create("com.adafruit.bluefruitconnect.cbcmqueue", DISPATCH_QUEUE_CONCURRENT)
    private var currentPeripheral:BLEPeripheral?
    private var currentAlertView:UIAlertController?
