Seeed-Studio / ArduinoCore-samd

49 stars 27 forks source link

error: 'configCAL_FACTOR' was not declared in this scope #65

Closed matsujirushi closed 1 year ago

matsujirushi commented 1 year ago

Compiling the wifi sample code gives an error.

Code: https://wiki.seeedstudio.com/Wio-Terminal-Wi-Fi#scanning-wi-fi-network-example-code

Error message:

C:\Users\takashi\AppData\Local\arduino15\packages\Seeeduino\hardware\samd\1.8.4\libraries\Seeed_Arduino_FreeRTOS\src\error_hooks.cpp: In function 'void vNopDelayMS(long unsigned int)':
C:\Users\takashi\AppData\Local\arduino15\packages\Seeeduino\hardware\samd\1.8.4\libraries\Seeed_Arduino_FreeRTOS\src\error_hooks.cpp:187:39: error: 'configCAL_FACTOR' was not declared in this scope
   unsigned long iterations = millis * configCAL_FACTOR;
                                       ^~~~~~~~~~~~~~~~
C:\Users\takashi\AppData\Local\arduino15\packages\Seeeduino\hardware\samd\1.8.4\libraries\Seeed_Arduino_FreeRTOS\src\error_hooks.cpp:187:39: note: suggested alternative: 'configASSERT'
   unsigned long iterations = millis * configCAL_FACTOR;
                                       ^~~~~~~~~~~~~~~~
                                       configASSERT

Environment:

Libraries:

matsujirushi commented 1 year ago

https://github.com/Seeed-Studio/Seeed_Arduino_FreeRTOS/issues/10