From 578a2fd693ac52dc4fd510cf8be7a55f776e1bd0 Mon Sep 17 00:00:00 2001 From: _N0x Date: Thu, 28 Oct 2021 17:11:55 +0200 Subject: [PATCH] Optimised Taster.c --- EmbeddedSystemsTHM/Taster.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/EmbeddedSystemsTHM/Taster.c b/EmbeddedSystemsTHM/Taster.c index 39605e5..19278fb 100644 --- a/EmbeddedSystemsTHM/Taster.c +++ b/EmbeddedSystemsTHM/Taster.c @@ -9,14 +9,14 @@ void Taster_init(void){ } uint8_t Taster1_get(void){ - return PIND&(1<<7); + return ((PIND & (1<