Skip to content

Commit

Permalink
Merge pull request GoogleChrome#303 from beaufortfrancois/nit
Browse files Browse the repository at this point in the history
web-bluetooth: fix value format in notification
  • Loading branch information
jeffposnick committed Feb 23, 2016
2 parents 55a8f14 + 974c28d commit 21dab00
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web-bluetooth/notifications.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ function handleNotifications(event) {
// In the "real" world, you'd use data.getUint8, data.getUint16 or even
// TextDecoder to process raw data bytes.
for (var i = 0; i < value.byteLength; i++) {
a.push(('00' + value.getUint8(i).toString(16)).slice(-2));
a.push('0x' + ('00' + value.getUint8(i).toString(16)).slice(-2));
}
log('> ' + a.join(''));
log('> ' + a.join(' '));
}

0 comments on commit 21dab00

Please sign in to comment.