Skip to content

Commit

Permalink
Fix compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
calc84maniac committed Aug 26, 2024
1 parent 336aab8 commit 66883cc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions core/flash.c
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ static void flash_execute_command(void) {
}
}
static uint8_t flash_read_command(bool peek) {
(void)peek;
switch (flash.command[0xF]) {
case 0x05: // Read Status Register-1
return flash.commandStatus[1];
Expand Down
1 change: 1 addition & 0 deletions core/spi.c
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@ static uint8_t spi_read(uint16_t addr, bool peek) {

/* Write to the SPI range of ports */
static void spi_write(uint16_t addr, uint8_t byte, bool poke) {
(void)poke;
uint32_t shift = (addr & 3) << 3, value = (uint32_t)byte << shift, mask = ~(0xFFu << shift);
bool stateChanged = false;
switch (addr >> 2) {
Expand Down

0 comments on commit 66883cc

Please sign in to comment.