Fix issues with retrieving interfaces
This commit is contained in:
parent
1375656363
commit
7e1110ac4f
@ -534,8 +534,8 @@ int rnode_get_interfaces(struct RNode* rn) {
|
|||||||
uint8_t cmd_buf_l = 0;
|
uint8_t cmd_buf_l = 0;
|
||||||
uint16_t frame_len = 0;
|
uint16_t frame_len = 0;
|
||||||
|
|
||||||
memcpy(tx_buf, (uint8_t[3]){FEND, CMD_INTERFACES, FEND}, 3*sizeof(uint8_t));
|
memcpy(tx_buf, (uint8_t[4]){FEND, CMD_INTERFACES, 0x00, FEND}, 4*sizeof(uint8_t));
|
||||||
err_code = write_port(rn->fd, tx_buf, 3);
|
err_code = write_port(rn->fd, tx_buf, 4);
|
||||||
|
|
||||||
if (!err_code) {
|
if (!err_code) {
|
||||||
sleep_ms(100);
|
sleep_ms(100);
|
||||||
|
@ -85,7 +85,7 @@
|
|||||||
#define CMD_RESET 0x55
|
#define CMD_RESET 0x55
|
||||||
#define CMD_RESET_BYTE 0xF8
|
#define CMD_RESET_BYTE 0xF8
|
||||||
|
|
||||||
#define CMD_INTERFACES 0x64
|
#define CMD_INTERFACES 0x71
|
||||||
#define CMD_SEL_INT 0x1F
|
#define CMD_SEL_INT 0x1F
|
||||||
|
|
||||||
#define DETECT_REQ 0x73
|
#define DETECT_REQ 0x73
|
||||||
|
Loading…
x
Reference in New Issue
Block a user