Greetings to All,
Using the non-RTOS SDK, there is a function to disable os_printf output.
Unfortunately, this function doesn't work using the RTOS SDK: do you know any way to do so?
Many thanks,
Emmanuel
how do disable os_printf output using RTOS-SDK?
Re: how do disable os_printf output using RTOS-SDK?
Postby ESP_Faye » Thu Dec 10, 2015 11:39 am
Hi,
Here is an example. But it will disable all logs, if something goes wrong, you can not track it by logs, we do not suggest it.
Or you can define your own trace
Thanks for your interest in ESP8266 !
Here is an example. But it will disable all logs, if something goes wrong, you can not track it by logs, we do not suggest it.
Code: Select all
void user_printf(char c)
{
// do nothing here
}
os_install_putc1(user_printf);
Or you can define your own trace
Code: Select all
#ifdef USER_DEBUG
#define TRACE printf
#else
#define TRACE
#endif
Thanks for your interest in ESP8266 !
Re: how do disable os_printf output using RTOS-SDK?
Postby ecl66 » Fri Dec 11, 2015 12:52 am
Thanks for your reply.
Actually another easy way was to redefine os_printf (within an #ifdef) and to comment out the original definition in esp_libc.h (also within an #ifdef).
best regards,
Actually another easy way was to redefine os_printf (within an #ifdef) and to comment out the original definition in esp_libc.h (also within an #ifdef).
best regards,
Who is online
Users browsing this forum: No registered users and 19 guests
Login
Newbies Start Here
Are you new to ESP8266?
Unsure what to do?
Dunno where to start?
Start right here!
Latest SDK
Documentation
Complete listing of the official ESP8266 related documentation release by ESPRESSIF!
Must read here!
- All times are UTC+08:00
- Top
- Delete all board cookies
About Us
Espressif Systems is a fabless semiconductor company providing cutting-edge low power WiFi SoCs and wireless solutions for wireless communications and Internet of Things applications. We are the manufacturer of ESP8266EX.