mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-24 00:35:39 +03:00
Fix W25N01G FLASH writes
This commit is contained in:
parent
0b3a5a651b
commit
6f489c33f7
1 changed files with 2 additions and 2 deletions
|
@ -414,7 +414,7 @@ static void w25n01g_programDataLoad(flashDevice_t *fdevice, uint16_t columnAddre
|
|||
uint8_t cmd[] = { W25N01G_INSTRUCTION_PROGRAM_DATA_LOAD, columnAddress >> 8, columnAddress & 0xff };
|
||||
|
||||
busSegment_t segments[] = {
|
||||
{cmd, NULL, sizeof (cmd), true, NULL},
|
||||
{cmd, NULL, sizeof (cmd), false, NULL},
|
||||
{(uint8_t *)data, NULL, length, true, NULL},
|
||||
{NULL, NULL, 0, true, NULL},
|
||||
};
|
||||
|
@ -448,7 +448,7 @@ static void w25n01g_randomProgramDataLoad(flashDevice_t *fdevice, uint16_t colum
|
|||
extDevice_t *dev = fdevice->io.handle.dev;
|
||||
|
||||
busSegment_t segments[] = {
|
||||
{cmd, NULL, sizeof (cmd), true, NULL},
|
||||
{cmd, NULL, sizeof (cmd), false, NULL},
|
||||
{(uint8_t *)data, NULL, length, true, NULL},
|
||||
{NULL, NULL, 0, true, NULL},
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue