 			textview.text = String("Extrn Force - x:\(xq), y:\(yq), z:\(zq)")
 			//print("Extrn Force - x:\(xq), y:\(yq), z:\(zq)")*/
 			break
-		case FusionId.Mag:
+		case MAG_Data:
 			//
 			// Mag data
 			//

	
	func didConnectNeblina() {
		//device.SittingStanding(true)
		device.QuaternionStream(true)
		device.TrajectoryInfo(true)
	}
	
	func didReceiveFusionData(type : FusionId, data : Fusion_DataPacket_t) {
		//	let textview = self.view.viewWithTag(3) as! UITextView
		
		switch (type) {
			
		case FusionId.MotionState:
			break
		case FusionId.SixAxisIMU:
			break
		case FusionId.EulerAngle:
			//
			// Process Euler Angle
			//

			label2.stringValue = String("Count \(count), Val \(prval)")
			level.integerValue =  prval
			break
		case SittingStanding:
/*			let state = data.data.0
			let sitTime = (Int32(data.data.1) & 0xff) | (Int32(data.data.2) << 8)  | (Int32(data.data.3) << 16) | (Int32(data.data.4) << 24)
			let standTime = (Int32(data.data.5) & 0xff) | (Int32(data.data.6) << 8)  | (Int32(data.data.7) << 16) | (Int32(data.data.8) << 24)
