diff options
| author | Luke Hoersten <[email protected]> | 2021-06-04 13:23:02 -0500 |
|---|---|---|
| committer | Luke Hoersten <[email protected]> | 2021-06-04 13:23:02 -0500 |
| commit | e6c6946e5d860f2d177c2f2363d21110563aab20 (patch) | |
| tree | 20b88e2568ed413e33fc67281ae0de236aeb6739 /main/src/bell.c | |
| parent | 4043b33110efcd068078d19d9a37242b00ce9710 (diff) | |
Added bell stablization delay.
Fixed inverted lock GPIO code.
Diffstat (limited to 'main/src/bell.c')
| -rw-r--r-- | main/src/bell.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/main/src/bell.c b/main/src/bell.c index 10c92a6..f9fd733 100644 --- a/main/src/bell.c +++ b/main/src/bell.c @@ -36,6 +36,7 @@ void bell_rang() bool is_bell_ringing() { + vTaskDelay(20); int val = adc1_get_raw(ADC1_GPIO33_CHANNEL); bool is_ringing = 1935 < val && val < 1945; ESP_LOGI(TAG, "bell rang [val: %d; is_ringing: %s]", val, is_ringing ? "true" : "false"); |
