micro-ROS / freertos_apps

Sample applications for FreeRTOS + micro-ROS
Apache License 2.0
81 stars 50 forks source link

Added missing header files #106

Open AjinJayan opened 1 year ago

AjinJayan commented 1 year ago

error: implicit declaration of function 'vTaskDelete' [-Werror=implicit-function-declaration]

error: implicit declaration of function 'usleep'; did you mean 'fseek'? [-Werror=implicit-function-declaration] usleep(100000);

To resolve these errors header files were added to int_subscriber/app.c

ifdef ESP_PLATFORM

include "freertos/FreeRTOS.h"

include "freertos/task.h"

endif

include

pablogs9 commented 1 year ago

What about including it without the #ifdef ESP_PLATFORM and keeping those includes for all platforms?

AjinJayan commented 1 year ago

yeah sure