Skip to content

Commit 748259e

Browse files
committed
Corrected pairing address for resets, paullj1#2
1 parent d803adf commit 748259e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/storage.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,8 @@ int homekit_storage_reset_pairing_data() {
151151
byte blank[sizeof(pairing_data_t) * MAX_PAIRINGS];
152152
bzero(blank,sizeof(blank));
153153

154-
INFO("Formatting HomeKit storage at 0x%x", PAIRINGS_OFFSET);
155-
if (!spiflash_write(PAIRINGS_OFFSET, blank, sizeof(blank))) {
154+
INFO("Formatting HomeKit storage at 0x%x", PAIRINGS_ADDR);
155+
if (!spiflash_write(PAIRINGS_ADDR, blank, sizeof(blank))) {
156156
ERROR("Failed to erase HomeKit pairing storage");
157157
return -1; // Fail case
158158
}

0 commit comments

Comments
 (0)