src.nth.io/

summaryrefslogtreecommitdiff
path: root/main/src/lock.c
diff options
context:
space:
mode:
authorLuke Hoersten <[email protected]>2021-06-04 16:48:31 -0500
committerLuke Hoersten <[email protected]>2021-06-04 16:48:31 -0500
commit887e169ee8c457f7811a87beff5af752723b18b1 (patch)
tree416d76c9076152cb03f0c0a2d601d8675bcb7e96 /main/src/lock.c
parente6c6946e5d860f2d177c2f2363d21110563aab20 (diff)
Added additional sampling attempts.HEADmain
Diffstat (limited to 'main/src/lock.c')
-rw-r--r--main/src/lock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/src/lock.c b/main/src/lock.c
index c37f9b3..008591a 100644
--- a/main/src/lock.c
+++ b/main/src/lock.c
@@ -20,7 +20,7 @@ static hap_char_t *lock_target_state;
void lock_update_current_state(uint8_t is_secured)
{
ESP_LOGI(TAG, "lock updated [%s]", is_secured ? "secured" : "unsecured");
- gpio_set_level(GPIO_NUM_21, !is_secured);
+ gpio_set_level(GPIO_NUM_21, !is_secured); // the GPIO pin is inverse secure/unsecure of homekit.
hap_val_t val = {.u = is_secured};
hap_char_update_val(lock_current_state, &val);