Skip to content

Commit f3e43fa

Browse files
authoredMay 9, 2022
Update DumpSKU.cs
1 parent 3accbfa commit f3e43fa

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed
 

‎scripts/DumpSKU.cs

+4-4
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public async void OnHooked()
2222

2323
if (BluetoothImpl.Instance.IsConnected)
2424
{
25-
await BluetoothImpl.Instance.SendRequestAsync(SPPMessage.MessageIds.MSG_ID_DEBUG_SKU);
25+
await BluetoothImpl.Instance.SendRequestAsync(SPPMessage.MessageIds.DEBUG_SKU);
2626
}
2727
else
2828
{
@@ -38,12 +38,12 @@ public void OnUnhooked()
3838
private async void OnConnected(object? sender, EventArgs e)
3939
{
4040
await Task.Delay(100);
41-
await BluetoothImpl.Instance.SendRequestAsync(SPPMessage.MessageIds.MSG_ID_DEBUG_SKU);
41+
await BluetoothImpl.Instance.SendRequestAsync(SPPMessage.MessageIds.DEBUG_SKU);
4242
}
4343

4444
public void OnMessageAvailable(ref SPPMessage msg)
4545
{
46-
if (msg.Id == SPPMessage.MessageIds.MSG_ID_DEBUG_SKU)
46+
if (msg.Id == SPPMessage.MessageIds.DEBUG_SKU)
4747
{
4848
Log.Information("[Script] DumpSKU: " + HexUtils.Dump(msg.Payload, showAscii: true, showHeader: false, showOffset: false));
4949
ScriptManager.Instance.UnregisterHook(this);
@@ -53,4 +53,4 @@ public void OnMessageAvailable(ref SPPMessage msg)
5353
public void OnMessageSend(ref SPPMessage msg)
5454
{
5555
}
56-
}
56+
}

0 commit comments

Comments
 (0)
Please sign in to comment.