Skip to content

Commit

Permalink
Update spark package
Browse files Browse the repository at this point in the history
  • Loading branch information
zankich committed Jul 8, 2014
1 parent 62a4cd8 commit da83593
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions platforms/spark/spark_core_adaptor.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,21 +17,22 @@ type SparkCoreAdaptor struct {

func NewSparkCoreAdaptor(name string, deviceID string, accessToken string) *SparkCoreAdaptor {
return &SparkCoreAdaptor{
Adaptor: gobot.Adaptor{
Name: name,
},
Adaptor: *gobot.NewAdaptor(
name,
"SparkCoreAdaptor",
),
DeviceID: deviceID,
AccessToken: accessToken,
}
}

func (s *SparkCoreAdaptor) Connect() bool {
s.Connected = true
s.SetConnected(true)
return true
}

func (s *SparkCoreAdaptor) Finalize() bool {
s.Connected = false
s.SetConnected(false)
return true
}

Expand Down

0 comments on commit da83593

Please sign in to comment.