OSDN Git Service

Bluetoothのデバイスと接続する部分作りこみ途中。。
[gokigen/ThetaThoughtShutter.git] / app / src / main / java / jp / osdn / gokigen / thetathoughtshutter / brainwave / BrainwaveDataHolder.kt
index 9eb53f6..47eb174 100644 (file)
@@ -3,8 +3,7 @@ package jp.osdn.gokigen.thetathoughtshutter.brainwave
 import android.util.Log
 import java.util.*
 
-
-class BrainwaveDataHolder(maxBufferSize: Int) : IBrainwaveDataReceiver
+class BrainwaveDataHolder(maxBufferSize: Int = 16000) : IBrainwaveDataReceiver
 {
     private val TAG = toString()
 
@@ -22,7 +21,7 @@ class BrainwaveDataHolder(maxBufferSize: Int) : IBrainwaveDataReceiver
 
     override fun receivedRawData(value: Int)
     {
-        //Log.v(TAG, " receivedRawData() : " + value);
+        Log.v(TAG, " receivedRawData() : $value");
         try {
             valueBuffer[currentPosition] = value
             currentPosition++