From 5e9dac872aac65a7dbcc300430efe1d95e7b15fc Mon Sep 17 00:00:00 2001 From: BlackMark Date: Mon, 13 Apr 2020 00:03:02 +0200 Subject: [PATCH] Fix wrong callback signature --- adc.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adc.hpp b/adc.hpp index 5d76a28..4cd908b 100644 --- a/adc.hpp +++ b/adc.hpp @@ -156,7 +156,7 @@ class Adc : public detail::AdcImpl { template class Adc : public detail::AdcImpl { - using callback_t = void (*)(uint16_t); + using callback_t = void (*)(const uint16_t &); public: static void init(callback_t callback)