diff --git a/src/storage.c b/src/storage.c index 40b893c..2f1fdf6 100644 --- a/src/storage.c +++ b/src/storage.c @@ -152,7 +152,7 @@ int homekit_storage_reset_pairing_data() { bzero(blank,sizeof(blank)); INFO("Formatting HomeKit storage at 0x%x", PAIRINGS_OFFSET); - if (!spiflash_write(PAIRINGS_OFFSET, blank, sizeof(blank))) { + if (!spiflash_write(PAIRINGS_ADDR, blank, sizeof(blank))) { ERROR("Failed to erase HomeKit pairing storage"); return -1; // Fail case }