Sub admin_StateChanged (NewState As Int, OldState As Int)
If (IsPaused(Main) = False Or IsPaused(Parameters) = False Or IsPaused(calibration)=False) And (NewState = admin.STATE_OFF) Then
Common.connected = False
Log ("BT off")
what should be here ?
End If
End Sub