Skip to content

Commit

Permalink
Read out correct capabilities characteristic (#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
balloob committed Aug 25, 2021
1 parent b3c7ab8 commit b0d617c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/provision-dialog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import {
ImprovRPCResult,
State,
ImprovState,
IMPROV_BLE_CAPABILITIES_CHARACTERISTIC,
} from "./const";

const ERROR_ICON = "⚠️";
Expand Down Expand Up @@ -293,7 +294,7 @@ class ProvisionDialog extends LitElement {
);
try {
const capabilitiesChar = await service.getCharacteristic(
IMPROV_BLE_RPC_COMMAND_CHARACTERISTIC
IMPROV_BLE_CAPABILITIES_CHARACTERISTIC
);
const capabilitiesValue = await capabilitiesChar.readValue();
this._improvCapabilities = capabilitiesValue.getUint8(0);
Expand Down

0 comments on commit b0d617c

Please sign in to comment.