diff options
| author | robert-hh <robert@hammelrath.com> | 2023-04-07 17:34:15 +0200 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2023-05-22 18:37:35 +1000 |
| commit | 7a847bab1e448c428ecd5d1ad1b7c66b70009587 (patch) | |
| tree | c99ab6f320e3a5e9638008322c291abed15660f9 /py/mpthread.h | |
| parent | b7180d53f091c645a39377ddc17ee9d0bae2767f (diff) | |
samd/main: Fix sercom deinit ordering in soft-reset.
If sockets were open when calling soft reset, gc_sweep_all() would try to
close them. In case of e.g. the NINA WiFi handler, connected through SPI,
spi_transfer() would be called for command exchange with the NINA module.
But at that time SerCom was already disabled.
Moving sercom_deinit_all() behind gc_sweep_all() solves this issue.
Signed-off-by: robert-hh <robert@hammelrath.com>
Diffstat (limited to 'py/mpthread.h')
0 files changed, 0 insertions, 0 deletions
