File tree Expand file tree Collapse file tree 3 files changed +10
-4
lines changed Expand file tree Collapse file tree 3 files changed +10
-4
lines changed Original file line number Diff line number Diff line change 24
24
* THE SOFTWARE.
25
25
*/
26
26
27
+ #include "common-hal/ota/__init__.h"
27
28
#include "shared-bindings/ota/__init__.h"
28
29
29
30
#include <string.h>
@@ -37,7 +38,7 @@ static esp_ota_handle_t update_handle = 0;
37
38
static bool ota_inited = false;
38
39
static const char * TAG = "OTA" ;
39
40
40
- static void ota_reset (void ) {
41
+ void ota_reset (void ) {
41
42
update_handle = 0 ;
42
43
update_partition = NULL ;
43
44
ota_inited = false;
Original file line number Diff line number Diff line change 24
24
* THE SOFTWARE.
25
25
*/
26
26
27
- #ifndef MICROPY_INCLUDED_ESP32S2_COMMON_HAL_OTA__INIT__H
28
- #define MICROPY_INCLUDED_ESP32S2_COMMON_HAL_OTA__INIT__H
27
+ #ifndef MICROPY_INCLUDED_ESP32S2_COMMON_HAL_OTA___INIT___H
28
+ #define MICROPY_INCLUDED_ESP32S2_COMMON_HAL_OTA___INIT___H
29
29
30
30
extern void ota_reset (void );
31
31
32
- #endif //MICROPY_INCLUDED_ESP32S2_COMMON_HAL_OTA__INIT__H
32
+ #endif //MICROPY_INCLUDED_ESP32S2_COMMON_HAL_OTA___INIT___H
Original file line number Diff line number Diff line change 41
41
#include "common-hal/busio/I2C.h"
42
42
#include "common-hal/busio/SPI.h"
43
43
#include "common-hal/busio/UART.h"
44
+ #include "common-hal/ota/__init__.h"
44
45
#include "common-hal/ps2io/Ps2.h"
45
46
#include "common-hal/pulseio/PulseIn.h"
46
47
#include "common-hal/pwmio/PWMOut.h"
@@ -107,6 +108,10 @@ void reset_port(void) {
107
108
analogout_reset ();
108
109
#endif
109
110
111
+ #if CIRCUITPY_OTA
112
+ ota_reset ();
113
+ #endif
114
+
110
115
#if CIRCUITPY_PS2IO
111
116
ps2_reset ();
112
117
#endif
You can’t perform that action at this time.
0 commit comments