From 95bad4e18e1215d95eae2f7c5189678c679b6ac1 Mon Sep 17 00:00:00 2001 From: Sadeep Madurange Date: Wed, 28 May 2025 11:22:33 +0800 Subject: Fix init_btns(). --- lock/client.c | 4 ++-- 1 file 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); -- cgit v1.2.3