mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-25 17:25:20 +03:00
Wrong check in MAX7456 status register
This commit is contained in:
parent
85222c80fa
commit
7ff10640f5
1 changed files with 1 additions and 1 deletions
2
src/main/drivers/max7456.c
Normal file → Executable file
2
src/main/drivers/max7456.c
Normal file → Executable file
|
@ -296,7 +296,7 @@ void max7456_write_nvm(uint8_t char_address, uint8_t *font_data) {
|
||||||
max7456_send(MAX7456ADD_CMM, WRITE_NVR);
|
max7456_send(MAX7456ADD_CMM, WRITE_NVR);
|
||||||
|
|
||||||
// wait until bit 5 in the status register returns to 0 (12ms)
|
// wait until bit 5 in the status register returns to 0 (12ms)
|
||||||
while ((spiTransferByte(MAX7456_SPI_INSTANCE, MAX7456ADD_STAT) & STATUS_REG_NVR_BUSY) != 0);
|
while ((max7456_send(MAX7456ADD_STAT, 0) & STATUS_REG_NVR_BUSY) != 0x00);
|
||||||
|
|
||||||
max7456_send(VM0_REG, video_signal_type | 0x0C);
|
max7456_send(VM0_REG, video_signal_type | 0x0C);
|
||||||
DISABLE_MAX7456;
|
DISABLE_MAX7456;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue