diff options
| author | Sadeep Madurange <sadeep@asciimx.com> | 2025-05-28 11:22:33 +0800 |
|---|---|---|
| committer | Sadeep Madurange <sadeep@asciimx.com> | 2025-05-28 11:22:33 +0800 |
| commit | 95bad4e18e1215d95eae2f7c5189678c679b6ac1 (patch) | |
| tree | 43179d4fb79e2fa519753efe344fc15219521150 | |
| parent | 0104add45955586f6c3aeb4a601931b97dc04da9 (diff) | |
| download | smart-home-95bad4e18e1215d95eae2f7c5189678c679b6ac1.tar.gz | |
Fix init_btns().
| -rw-r--r-- | lock/client.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lock/client.c b/lock/client.c index b67bb47..393d260 100644 --- a/lock/client.c +++ b/lock/client.c @@ -50,8 +50,8 @@ static inline void init_rx(void) static inline void init_btns(void) { - DDRD &= ~((1 << LOCK_PIN) | (1 << UNLOCK_PIN) | ENROLL_PIN); - PORTD |= ((1 << LOCK_PIN) | (1 << UNLOCK_PIN) | ENROLL_PIN); + DDRD &= ~((1 << LOCK_PIN) | (1 << UNLOCK_PIN) | (1 << ENROLL_PIN)); + PORTD |= ((1 << LOCK_PIN) | (1 << UNLOCK_PIN) | (1 << ENROLL_PIN)); EICRA = 0b00000000; EIMSK = (1 << INT0) | (1 << INT1); |
