1ae7e0e561
This commit consolidates a number of check_esp_err functions that check whether an ESP-IDF return code is OK and raises an exception if not. The exception raised is an OSError with the error code as the first argument (negative if it's ESP-IDF specific) and the ESP-IDF error string as the second argument. This commit also fixes esp32.Partition.set_boot to use check_esp_err, and uses that function for a unit test.
5 lines
68 B
Plaintext
5 lines
68 B
Plaintext
[Errno 2] ENOENT
|
|
(-5379, 'ESP_ERR_OTA_VALIDATE_FAILED')
|
|
exc:
|
|
-5379
|