Fix neurosky example

Signed-off-by: b3b <ash.b3b@gmail.com>
This commit is contained in:
b3b 2017-03-23 12:27:13 +03:00
parent 1e26f485d4
commit 5eaabf18a7
2 changed files with 2 additions and 2 deletions

View File

@ -35,7 +35,7 @@ func main() {
fmt.Println("Wave", data)
})
neuro.On(neuro.Event("eeg"), func(data interface{}) {
eeg := data.(neurosky.EEG)
eeg := data.(neurosky.EEGData)
fmt.Println("Delta", eeg.Delta)
fmt.Println("Theta", eeg.Theta)
fmt.Println("LoAlpha", eeg.LoAlpha)

View File

@ -40,7 +40,7 @@ Example:
fmt.Println("Wave", data)
})
neuro.On(neuro.Event("eeg"), func(data interface{}) {
eeg := data.(neurosky.EEG)
eeg := data.(neurosky.EEGData)
fmt.Println("Delta", eeg.Delta)
fmt.Println("Theta", eeg.Theta)
fmt.Println("LoAlpha", eeg.LoAlpha)