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)