Fixed CDC and DFU bootloaders API page erase and write function failures (thanks...
[pub/USBasp.git] / Bootloaders / CDC / BootloaderAPI.c
index 60b2d94..bac078f 100644 (file)
 void BootloaderAPI_ErasePage(const uint32_t Address)
 {
        boot_page_erase_safe(Address);
+       boot_spm_busy_wait();
        boot_rww_enable();
 }
 
 void BootloaderAPI_WritePage(const uint32_t Address)
 {
        boot_page_write_safe(Address);
+       boot_spm_busy_wait();
        boot_rww_enable();
 }