Skip to content

Commit

Permalink
warning
Browse files Browse the repository at this point in the history
  • Loading branch information
gfwilliams committed Oct 2, 2024
1 parent 06e49d5 commit 7469e53
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions apps/knobbutton/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ function calculateAngleOfRotation(acc) {
// Advertise the name "Knob.js"
function advertiseName() {
NRF.setAdvertising({}, {
showName: false,
manufacturer: 0x0590,
manufacturerData: JSON.stringify({ name: "Knob.js" }),
interval: NAME_ADVERTISING_PERIOD_MILLISECONDS
showName: false,
manufacturer: 0x0590,
manufacturerData: JSON.stringify({ name: "Knob.js" }),
interval: NAME_ADVERTISING_PERIOD_MILLISECONDS
});
}

Expand All @@ -60,14 +60,14 @@ function advertiseAngleOfRotation(angleOfRotation) {
}

NRF.setAdvertising({}, {
showName: false,
manufacturer: 0x0590,
manufacturerData: JSON.stringify({ angleOfRotation: angleOfRotation }),
interval: ANGLE_ADVERTISING_PERIOD_MILLISECONDS
showName: false,
manufacturer: 0x0590,
manufacturerData: JSON.stringify({ angleOfRotation: angleOfRotation }),
interval: ANGLE_ADVERTISING_PERIOD_MILLISECONDS
});

advertisingTimeoutId = setTimeout(advertiseName,
ANGLE_ADVERTISING_DURATION_MILLISECONDS);
ANGLE_ADVERTISING_DURATION_MILLISECONDS);
}


Expand Down

0 comments on commit 7469e53

Please sign in to comment.