fix(mpm): update internal module (#2314)

* Internal MPM update: UART context must be removed last

This fixes the crash / reboot observed in issue #2310

* Fix DMA fifo clear() method
This commit is contained in:
Raphael Coeffic
2022-09-14 11:58:01 +10:00
committed by GitHub
parent 1c7156262d
commit c7e77ccd36
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -36,7 +36,7 @@ class DMAFifo
void clear()
{
ridx = 0;
ridx = N - stream->NDTR;
}
uint32_t size()
+1 -1
View File
@@ -122,8 +122,8 @@ class MultiInternalUpdateDriver: public MultiFirmwareUpdateDriver
void deinit(bool inverted) override
{
IntmoduleSerialDriver.deinit(uart_ctx);
uart_ctx = nullptr;
clear();
uart_ctx = nullptr;
}
};
#endif