Opts for fitting beclear

This commit is contained in:
Ross Owen
2016-12-05 19:26:14 +00:00
parent 9c5bff58c4
commit ca1925db7a
15 changed files with 224 additions and 121 deletions

View File

@@ -203,7 +203,7 @@ static int DFU_Dnload(unsigned int request_len, unsigned int block_num, const un
static int DFU_Upload(unsigned int request_len, unsigned int block_num, unsigned data_out[16], unsigned &DFU_state)
{
unsigned int cmd_data[16];
unsigned int cmd_data[1];
unsigned int firstRead = 0;
// Start at flash address 0
@@ -236,8 +236,8 @@ static int DFU_Upload(unsigned int request_len, unsigned int block_num, unsigned
{
cmd_data[0] = !firstRead;
// Read whole (256bytes) page from the image on the flash
flash_cmd_read_page((cmd_data, unsigned char[64]));
// Read whole (256bytes) page from the image on the flash into a memory buffer
flash_cmd_read_page((cmd_data, unsigned char[1]));
subPagesLeft = 4;
// If address out of range, terminate!