Skip to content

Commit

Permalink
fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
zjli-2019 committed Jan 31, 2023
1 parent 5c66e63 commit d59c472
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/BSP/eflash.c
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ int program_fota_metadata(const uint32_t entry, const int block_num, const fota_
int erase_flash_sector(const uint32_t addr)
{
uint32_t val = (uint32_t)-1;
program_flash(addr, (const uint8_t *)&val, sizeof(val));
return program_flash(addr, (const uint8_t *)&val, sizeof(val));
}

int program_flash(uint32_t dest_addr, const uint8_t *buffer, uint32_t size)
Expand Down
1 change: 1 addition & 0 deletions src/StartUP/ing916/ingsoc.h
Original file line number Diff line number Diff line change
Expand Up @@ -606,6 +606,7 @@ typedef struct
#include "peripheral_dma.h"
#include "peripheral_ir.h"
#include "peripheral_usb.h"
#include "peripheral_qdec.h"
#endif

#define OSC_CLK_FREQ 24000000UL
Expand Down

0 comments on commit d59c472

Please sign in to comment.