mirror of
https://github.com/espressif/esp-idf.git
synced 2026-08-18 06:35:35 +03:00
Merge branch 'bugfix/github_issues' into 'master'
Fixes for github issues This MR contains a bunch of small fixes for issues raised on Github and esp32.com forum: - vfs doesn't check error code returned by open syscall - spi_flash doesn't work when built in release mode - duplicate definition of O_NONBLOCK when combining LwIP socket.h with sys/fcntl.h - wrong order of creation of standard streams - `_times_r` returning incorrect values, causing `clock`to return double of the actual time - driver/gpio.h: comment fix - wifi event handlers: fix incorrect MAC address printed by logging statements - move some functions out of IRAM when compiling for bootloader Please check commit descriptions for links to issues/forum posts and more details. See merge request !183
This commit is contained in:
@@ -114,7 +114,7 @@ void esp_setup_time_syscalls()
|
||||
clock_t IRAM_ATTR _times_r(struct _reent *r, struct tms *ptms)
|
||||
{
|
||||
clock_t t = xTaskGetTickCount() * (portTICK_PERIOD_MS * CLK_TCK / 1000);
|
||||
ptms->tms_cstime = t;
|
||||
ptms->tms_cstime = 0;
|
||||
ptms->tms_cutime = 0;
|
||||
ptms->tms_stime = t;
|
||||
ptms->tms_utime = 0;
|
||||
|
||||
Reference in New Issue
Block a user