arkhipenko / TaskScheduler

Cooperative multitasking for Arduino, ESPx, STM32, nRF and other microcontrollers
http://playground.arduino.cc/Code/TaskScheduler
BSD 3-Clause "New" or "Revised" License
1.32k stars 243 forks source link

Build fails for examples using QueueArray lib #153

Open vortigont opened 2 years ago

vortigont commented 2 years ago

some of the examples that depends on QueueArray lib throws build error. i.e. example 14,19,25 Is that the right lib to use?

/run/user/1000/1/Scheduler_example07_WDT/src/Scheduler_example19_Dynamic_Tasks.ino:57:20: error: no matching function for call to 'QueueArray<Task*>::QueueArray()'
   57 |   Serial.print("MainLoop run: ");
      |                    ^~~~~~~~
In file included from /run/user/1000/1/Scheduler_example07_WDT/src/Scheduler_example19_Dynamic_Tasks.ino:18:
.pio/libdeps/esp8266_example14_yield/QueueArray/QueueArray.h:116:1: note: candidate: 'QueueArray<T>::QueueArray(uint16_t) [with T = Task*; uint16_t = short unsigned int]'
  116 | QueueArray<T>::QueueArray (const uint16_t initialSize) {
      | ^~~~~~~~~~~~~
.pio/libdeps/esp8266_example14_yield/QueueArray/QueueArray.h:116:1: note:   candidate expects 1 argument, 0 provided
.pio/libdeps/esp8266_example14_yield/QueueArray/QueueArray.h:64:7: note: candidate: 'constexpr QueueArray<Task*>::QueueArray(const QueueArray<Task*>&)'
   64 | class QueueArray {
      |       ^~~~~~~~~~
.pio/libdeps/esp8266_example14_yield/QueueArray/QueueArray.h:64:7: note:   candidate expects 1 argument, 0 provided
In file included from /run/user/1000/1/Scheduler_example07_WDT/src/Scheduler_example19_Dynamic_Tasks.ino:17:
lib/src/TaskScheduler.h:305:17: warning: 'uint32_t _task_micros()' defined but not used [-Wunused-function]
  305 | static uint32_t _task_micros() {return micros();}
      |                 ^~~~~~~~~~~~
*** [.pio/build/esp8266_example14_yield/src/Scheduler_example19_Dynamic_Tasks.ino.cpp.o] Error 1