diff options
| author | Angus Gratton <angus@redyak.com.au> | 2023-11-07 14:11:20 +1100 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2023-11-22 16:48:35 +1100 |
| commit | a800ed5ae34f8a9bbe075e007de55109f33c7592 (patch) | |
| tree | b2a54a16eb98e2c2a41d4db1f635ec24493228a8 /ports/esp32/modesp.c | |
| parent | 917b56137fd8b8729531452b2aefa5aa1b1666c9 (diff) | |
docs/library/esp: Correct the description of esp.osdebug().
The behaviour described in the docs was not correct for either port.
This work was funded through GitHub Sponsors.
Signed-off-by: Angus Gratton <angus@redyak.com.au>
Diffstat (limited to 'ports/esp32/modesp.c')
| -rw-r--r-- | ports/esp32/modesp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ports/esp32/modesp.c b/ports/esp32/modesp.c index 4726ce587..f51ba6ab3 100644 --- a/ports/esp32/modesp.c +++ b/ports/esp32/modesp.c @@ -37,12 +37,12 @@ #include "py/mphal.h" STATIC mp_obj_t esp_osdebug(size_t n_args, const mp_obj_t *args) { - esp_log_level_t level = LOG_LOCAL_LEVEL; + esp_log_level_t level = LOG_LOCAL_LEVEL; // Maximum available level if (n_args == 2) { level = mp_obj_get_int(args[1]); } if (args[0] == mp_const_none) { - // Disable logging + // Set logging back to boot default of ESP_LOG_ERROR esp_log_level_set("*", ESP_LOG_ERROR); } else { // Enable logging at the given level |
