Skip to content

Commit 00df64b

Browse files
author
Donatien Garnier
committed
Fixed PasskeyAscii constructor
1 parent e8f29f7 commit 00df64b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

features/FEATURE_BLE/ble/BLETypes.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ class PasskeyAscii {
227227
for (int i = 5, m = 100000; i >= 0; --i, m /= 10) {
228228
uint32_t result = passkey / m;
229229
ascii[i] = NUMBER_OFFSET + result;
230-
passkey -= result;
230+
passkey -= result * m;
231231
}
232232
}
233233

0 commit comments

Comments
 (0)