 class LogReaderViewController: UITableViewController, SenStickDeviceDelegate {
     var device: SenStickDevice?
     var logID: UInt8?
-    
+    var dataModels : [SensorDataModel]?
     var accelerationDataModel:  AccelerationDataModel?
     var gyroDataModel:          GyroDataModel?
     var magneticFieldDataModel: MagneticFieldDataModel?

        uvDataModel            = UVDataModel()
        humidityDataModel      = HumidityDataModel()
        pressureDataModel      = PressureDataModel()
    }
    
    override func viewDidAppear(animated: Bool) {
        super.viewWillAppear(animated)
        
        device?.delegate = self
        setServices()
        startToReadLog(self.logID!)
    }
    
    override func viewWillDisappear(animated: Bool) {

        self.navigationController?.popToRootViewControllerAnimated(true)
    }
    
    // table view source/delegate
    override func tableView(tableView: UITableView, willDisplayCell cell: UITableViewCell, forRowAtIndexPath indexPath: NSIndexPath)
    {
        let dataCell = cell as? SensorDataCellView
        
        dataCell?.iconButton?.userInteractionEnabled = false
        dataModels![indexPath.row].cell = dataCell
    }
}

