Fix issues with retrieving interfaces

This commit is contained in:
Jacob Eva 2025-07-25 18:45:04 +01:00
parent 1375656363
commit 7e1110ac4f
2 changed files with 3 additions and 3 deletions

View File

@ -534,8 +534,8 @@ int rnode_get_interfaces(struct RNode* rn) {
uint8_t cmd_buf_l = 0;
uint16_t frame_len = 0;
memcpy(tx_buf, (uint8_t[3]){FEND, CMD_INTERFACES, FEND}, 3*sizeof(uint8_t));
err_code = write_port(rn->fd, tx_buf, 3);
memcpy(tx_buf, (uint8_t[4]){FEND, CMD_INTERFACES, 0x00, FEND}, 4*sizeof(uint8_t));
err_code = write_port(rn->fd, tx_buf, 4);
if (!err_code) {
sleep_ms(100);

View File

@ -85,7 +85,7 @@
#define CMD_RESET 0x55
#define CMD_RESET_BYTE 0xF8
#define CMD_INTERFACES 0x64
#define CMD_INTERFACES 0x71
#define CMD_SEL_INT 0x1F
#define DETECT_REQ 0x73