We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 34232d3 commit f1c27faCopy full SHA for f1c27fa
1 file changed
src/storage.c
@@ -280,9 +280,9 @@ bool homekit_storage_can_add_pairing() {
280
for (int i = 0; i < MAX_PAIRINGS; i++) {
281
spiflash_read(PAIRINGS_ADDR + (sizeof(data) * i), (uint32_t *) &data, sizeof(data));
282
if (memcmp(data.magic, hap_magic, sizeof(hap_magic)) || !data.active)
283
- return i;
+ return true;
284
}
285
- return -1;
+ return false;
286
287
288
static int compact_data() {
0 commit comments