Skip to content

Commit

Permalink
Fix sample to use the latest enumified bluetooth type instead of int.
Browse files Browse the repository at this point in the history
  • Loading branch information
atsushieno committed Feb 12, 2014
1 parent 83f02fa commit cdede07
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions BluetoothLeGatt/BluetoothLeService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -296,10 +296,10 @@ public BGattCallback (BluetoothLeService s)
service = s;
}

public override void OnConnectionStateChange (BluetoothGatt gatt, GattStatus status, int newState)
public override void OnConnectionStateChange (BluetoothGatt gatt, GattStatus status, ProfileState newState)
{
String intentAction;
if (newState == (int) ProfileState.Connected) {
if (newState == ProfileState.Connected) {
intentAction = BluetoothLeService.ACTION_GATT_CONNECTED;
BluetoothLeService.mConnectionState = State.Connected;
service.BroadcastUpdate (intentAction);
Expand Down

0 comments on commit cdede07

Please sign in to comment.