diff --git a/src/EncoderBase.h b/src/EncoderBase.h index 1aaf50c..3270a8b 100644 --- a/src/EncoderBase.h +++ b/src/EncoderBase.h @@ -272,7 +272,7 @@ namespace EncoderTool if (direction == ERR) { if (errCallback != nullptr) - errCallback(value); + errCallback(value,999); } #endif return false; diff --git a/src/config.h b/src/config.h index c67156c..980957e 100644 --- a/src/config.h +++ b/src/config.h @@ -2,6 +2,7 @@ // comment the following line out if you prefer plain vanilla function pointers for callbacks #define WANT_MODERN_CALLBACKS +#define USE_ERROR_CALLBACKS //================================================================================================================