From 6065c622ce9d34085ad6cf384643b622608af594 Mon Sep 17 00:00:00 2001 From: Matt Strapp Date: Mon, 24 Feb 2020 08:57:46 -0600 Subject: I hate this --- Lab3.X/numpad.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Lab3.X/numpad.c') diff --git a/Lab3.X/numpad.c b/Lab3.X/numpad.c index 271b324..f99a204 100644 --- a/Lab3.X/numpad.c +++ b/Lab3.X/numpad.c @@ -17,8 +17,9 @@ void padDelay(long n) { char readKeyPadRAW(void) { int i; char num; - num = (!_RB15 << 3) | (!_RB14 << 2) | (!_RB13 << 1) | !_RB12; + num = '\0' LATB |= (0b1111 << 12); + padDelay(5); for (i = 0; i < 4; i++) { LATB ^= 0b1 << (15 - i); padDelay(10); -- cgit v1.2.3