From 9a12bb90eddf197bfb9b4625d7504fff43b95d59 Mon Sep 17 00:00:00 2001 From: Florian Reitz Date: Tue, 5 May 2020 18:48:03 +0200 Subject: [PATCH] Wait for writecycle --- Software/src/Flasher.c | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/Software/src/Flasher.c b/Software/src/Flasher.c index a0ea27c..4bf1e5c 100644 --- a/Software/src/Flasher.c +++ b/Software/src/Flasher.c @@ -134,6 +134,8 @@ boolean writeChip(const uint8* pSource, uint8* pDest, uint16 length) { uint32 i; uint8 data = 0; + uint8 readData; + volatile uint8* pDestination = pDest; for(i=0; i