mirror of
https://github.com/trabucayre/openFPGALoader.git
synced 2026-08-31 10:16:11 +02:00
trabucayre/openFPGALoader#38 minor adjustments for MinGW build - use memset instead of bzero, errno_t may be replaced by int, provide ad-hoc ntohs on windows (alternative is link against winsock)
This commit is contained in:
+1
-1
@@ -58,7 +58,7 @@ int Altera::idCode()
|
||||
unsigned char rx_data[4];
|
||||
_jtag->go_test_logic_reset();
|
||||
_jtag->shiftIR(tx_data, NULL, IRLENGTH);
|
||||
bzero(tx_data, 4);
|
||||
memset(tx_data, 0, 4);
|
||||
_jtag->shiftDR(tx_data, rx_data, 32);
|
||||
return ((rx_data[0] & 0x000000ff) |
|
||||
((rx_data[1] << 8) & 0x0000ff00) |
|
||||
|
||||
Reference in New Issue
Block a user