SHA256
Обновить pairing устройств и доработать ESP32 UI
This commit is contained in:
+2
-2
@@ -136,8 +136,8 @@ final class EspPairingSupport {
|
||||
| ((digest[1] & 0xFFL) << 16)
|
||||
| ((digest[2] & 0xFFL) << 8)
|
||||
| (digest[3] & 0xFFL);
|
||||
long shortCodeNum = code % 10_000_000L;
|
||||
String shortCode = String.format(Locale.ROOT, "%07d", shortCodeNum);
|
||||
long shortCodeNum = code % 10_000_000_000L;
|
||||
String shortCode = String.format(Locale.ROOT, "%010d", shortCodeNum);
|
||||
return new PairingFingerprint(shortCode, toBase58(digest));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user