* ID hash 0x00 and 0xFF now reserved for future.

Tento commit je obsažen v:
Scott Powell
2025-04-06 12:34:09 +10:00
rodič 86a3f592b9
revize 9498d2e824
4 změnil soubory, kde provedl 16 přidání a 0 odebrání
+4
Zobrazit soubor
@@ -872,6 +872,10 @@ void setup() {
#endif
if (!store.load("_main", the_mesh.self_id)) {
the_mesh.self_id = radio_new_identity(); // create new random identity
int count = 0;
while (count < 10 && (the_mesh.self_id.pub_key[0] == 0x00 || the_mesh.self_id.pub_key[0] == 0xFF)) { // reserved id hashes
the_mesh.self_id = radio_new_identity(); count++;
}
store.save("_main", the_mesh.self_id);
}