mirror of https://github.com/rusefi/bldc.git
fixes warnings
This commit is contained in:
parent
94f80a9e94
commit
53e64c9f60
|
@ -502,7 +502,7 @@ typedef struct {
|
|||
// NVM
|
||||
bool (*read_nvm_byte)(uint8_t *v, int address);
|
||||
bool (*write_nvm_byte)(uint8_t v, int address);
|
||||
bool (*wipe_nvm)();
|
||||
bool (*wipe_nvm)(void);
|
||||
|
||||
// Timeout
|
||||
void (*timeout_reset)(void);
|
||||
|
|
|
@ -299,7 +299,7 @@ static bool if_write_nvm_byte(uint8_t v, int address) {
|
|||
}
|
||||
|
||||
// wipes flash region 8
|
||||
static bool if_wipe_nvm() {
|
||||
static bool if_wipe_nvm(void) {
|
||||
FLASH_Unlock();
|
||||
FLASH_ClearFlag(FLASH_FLAG_OPERR | FLASH_FLAG_WRPERR | FLASH_FLAG_PGAERR |
|
||||
FLASH_FLAG_PGPERR | FLASH_FLAG_PGSERR);
|
||||
|
|
Loading…
Reference in New Issue