From 01cd8c7776d4ab5ebcdeedad504700e2a61acf35 Mon Sep 17 00:00:00 2001 From: Jared Boone Date: Wed, 21 Dec 2016 22:24:07 -0800 Subject: [PATCH] GPIO: Fix PinConfig -> uint16_t type conversion signature. --- firmware/common/gpio.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/firmware/common/gpio.hpp b/firmware/common/gpio.hpp index 97e69952..69e12c91 100644 --- a/firmware/common/gpio.hpp +++ b/firmware/common/gpio.hpp @@ -35,7 +35,7 @@ struct PinConfig { const uint32_t input; const uint32_t ifilt; - constexpr operator uint16_t() { + constexpr operator uint16_t() const { return (((~ifilt) & 1) << 7) | ((input & 1) << 6)