fixes warnings

This commit is contained in:
blevruz 2023-01-04 09:42:12 +01:00
parent 94f80a9e94
commit 53e64c9f60
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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);