我有这个错误:
BSPArduino.cpp:316:错误:将'const BSPArduino'作为'this'参数传递给'virtual void BSPArduino :: enableWdt(const WATCHDOG_TIMER_DELAY&,const ___ bool&)'丢弃限定符
这个方法定义如下:
void BSPArduino::enableWdt(const WATCHDOG_TIMER_DELAY &delay, const ___bool &enable)
Run Code Online (Sandbox Code Playgroud)
我想这样称呼它:
enableWdt(this->watchdogTimer, ___false);
Run Code Online (Sandbox Code Playgroud)
附:
WATCHDOG_TIMER_DELAY watchdogTimer;
Run Code Online (Sandbox Code Playgroud)
我不明白为什么这个构建错误...
非常感谢你的帮助
安东尼