staticDONT_BLOCK undeclared

koytorni8i
Posts: 1
Joined: Mon Jul 26, 2021 10:20 am

staticDONT_BLOCK undeclared

Postby koytorni8i » Mon Jul 26, 2021 1:32 pm

Hello,
I am testing the timers example, I am using eclipse idf plugin.
I get this error when xTimerStop( xExpiredTimer, staticDONT_BLOCK ) is called:

'staticDONT_BLOCK' undeclared (first use in this function)
Symbol 'staticDONT_BLOCK' could not be resolved

I grep'ed the files in my esp-idf-v.4.2 and did not find any reference. I can put a number instead of staticDONT_BLOCK, for example 10, but the example does not work, it gives a core panic.
How can I find staticDONT_BLOCK and solve this?

ESP_Sprite
Posts: 9020
Joined: Thu Nov 26, 2015 4:08 am

Re: staticDONT_BLOCK undeclared

Postby ESP_Sprite » Tue Jul 27, 2021 12:58 am

Not sure why it's not in ESP-IDF FreeRTOS, but it's a trivial define: not blocking simply means a timeout of 0.

Code: Select all

#define staticDONT_BLOCK					( ( TickType_t ) 0 )
Replace it with 0 and you should be good.

Who is online

Users browsing this forum: No registered users and 148 guests