fix warning and ub (#3089)

This commit is contained in:
zxkmm
2026-03-14 00:51:15 +08:00
committed by GitHub
parent 5aecd4097e
commit b273165a0c
2 changed files with 3 additions and 3 deletions
@@ -342,7 +342,7 @@
// ============================================================================
uint8_t fpga_register_read(uint8_t reg) {
if (reg == 0 || reg > 5) return;
if (reg == 0 || reg > 5) return 0xFF;
ssp1_set_mode_ice40();
uint8_t val = fpga_spi_read(reg);