Skip to content

Commit 0795212

Browse files
committed
Remove header import to fix build errors
1 parent cc53a5f commit 0795212

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/sid_detection.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@
2828
#include "usbsid.h"
2929
#include "sid.h"
3030
#include "logging.h"
31-
#include "sid_fpgasid.h"
31+
32+
33+
#define FPGASID_ID 0xF51D
3234

3335

3436
/* GPIO */
@@ -240,7 +242,7 @@ bool detect_fpgasid(uint8_t base_address)
240242
cycled_write_operation((0x1A + base_address), 0x0, 6); /* Clear magic cookie Lo */
241243
uint16_t fpgasid_id = (idHi << 8 | idLo);
242244
CFG("[SID] READ IDENTIFY 0x%04X (0x%02X,0x%02X) @ 0x%02X\n", fpgasid_id, idHi, idLo, base_address);
243-
if (fpgasid_id == FPGASID_IDENTIFIER) {
245+
if (fpgasid_id == FPGASID_ID) {
244246
CFG("[SID] Found FPGASID @ 0x%02X\n", base_address);
245247
return true;
246248
}

0 commit comments

Comments
 (0)