From 90d2f0dfbf4cd82c576c0696b8bd905ae1396c76 Mon Sep 17 00:00:00 2001 From: Marco Date: Mon, 23 May 2022 21:28:20 +0200 Subject: [PATCH] Fix pins.c --- src/pins.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/pins.c b/src/pins.c index 69cae33..aac042a 100644 --- a/src/pins.c +++ b/src/pins.c @@ -1,23 +1,24 @@ #include +#include #include "pins.h" void setPin(volatile uint8_t *port, unsigned int pin) { *port |= (1 << pin); - printf("Port %d, Pin %d set\n\r", port, pin); + printf("Port %d, Pin %d set\n\r", (int)port, pin); } void unsetPin(volatile uint8_t *port, unsigned int pin) { *port &= ~(1 << pin); - printf("Port %d, Pin %d unset\n\r", port, pin); + printf("Port %d, Pin %d unset\n\r", (int)port, pin); } void togglePin(volatile uint8_t *port, unsigned int pin) { *port ^= (1 << pin); - printf("Port %d, Pin %d toggled to ", port, pin); + printf("Port %d, Pin %d toggled to ", (int)port, pin); if ((*port & (1 << pin)) > 0) printf("on");