         // Try parsing the data that was added to the buffer. Use
         // LF as the message delimiter because that's what's used
         // in trace files.
+        VehicleManager.sharedInstance.isTraceFileConnected = true
         RxDataParser(0x0a)
       } else {
         // There was no data read, so we're at the end of the

  open func disableTraceFileSink() {
    
    traceFilesinkEnabled = false
    
  }
  

    // append date to filename
    let d = Date()
    let df = DateFormatter()
    df.dateFormat = "dd-MM-yyyy HH-mm-ss"
    let datedFilename = (filename as String) + "-" + df.string(from: d)
    traceFilesinkName = datedFilename as NSString
    
