OSDN Git Service

とりあえずコミットその3。
[gokigen/ThetaView.git] / app / src / main / java / jp / osdn / gokigen / thetaview / scene / MainButtonHandler.kt
index b2399e5..b879fee 100644 (file)
@@ -58,7 +58,7 @@ class MainButtonHandler(private val activity : AppCompatActivity, private val co
 
     private fun connectEEG()
     {
-        if (connectionStatus.getBluetoothConnectionStatus() != IBluetoothConnection.ConnectionStatus.Ready)
+        if (connectionStatus.getBluetoothConnectionStatus() == IBluetoothConnection.ConnectionStatus.Ready)
         {
             Log.v(TAG, " - - - - - - - - - CONNECT TO EEG - - - - - - - - -")
             showInformation.vibrate(IShowInformation.VibratePattern.SIMPLE_SHORT)