Skip to content

Commit e31e2c9

Browse files
committed
Enum fix.
1 parent 6319440 commit e31e2c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/arduino_homekit_server.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2329,7 +2329,7 @@ HAPStatus process_characteristics_update(const cJSON *j_ch, client_context_t *co
23292329

23302330
cJSON *j_events = cJSON_GetObjectItem(j_ch, "ev");
23312331
if (j_events) {
2332-
if (!(ch->permissions && homekit_permissions_notify)) {
2332+
if (!(ch->permissions & homekit_permissions_notify)) {
23332333
CLIENT_ERROR(context,
23342334
"Failed to set notification state for %d.%d: " "notifications are not supported",
23352335
aid, iid);

0 commit comments

Comments
 (0)