mirror of
https://github.com/eddyem/stm32samples.git
synced 2026-05-08 22:06:53 +03:00
fixed stupid bug
This commit is contained in:
@@ -25,6 +25,7 @@
|
||||
|
||||
#include "flash.h"
|
||||
#include "proto.h"
|
||||
#include "strfunc.h"
|
||||
#include "usb_dev.h" // printout
|
||||
#include <string.h> // memcpy
|
||||
|
||||
@@ -145,7 +146,7 @@ static int write2flash(const void *start, const void *wrdata, uint32_t stor_size
|
||||
}
|
||||
#ifdef EBUG
|
||||
USB_sendstr(u2str(stor_size)); USB_sendstr("bytes stored @0x");
|
||||
USB_sendstr(u2hexstr((uint32_t)(address + i))); USB_sendstr("\n");
|
||||
USB_sendstr(uhex2str((uint32_t)(address + i))); USB_sendstr("\n");
|
||||
#endif
|
||||
FLASH->SR = FLASH_SR_EOP | FLASH_SR_PGERR | FLASH_SR_WRPRTERR;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user