edited SW
This commit is contained in:
parent
1e05b6480e
commit
e52dc45b03
1
c/README
1
c/README
@ -6,6 +6,7 @@ mode:
|
|||||||
2: green
|
2: green
|
||||||
3: blue
|
3: blue
|
||||||
4: off
|
4: off
|
||||||
|
5: white
|
||||||
|
|
||||||
IFNAME:
|
IFNAME:
|
||||||
Interface name like "eth0" or "enp5s0"
|
Interface name like "eth0" or "enp5s0"
|
||||||
|
5
c/prog.c
5
c/prog.c
@ -345,7 +345,12 @@ sendbuf[tx_len++] = 0x00;
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
} else if (mode == 5) {
|
||||||
|
for (i = 0; i< 3*60; i++) {
|
||||||
|
sendbuf[tx_len++] = 0xff;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/* Index of the network device */
|
/* Index of the network device */
|
||||||
socket_address.sll_ifindex = if_idx.ifr_ifindex;
|
socket_address.sll_ifindex = if_idx.ifr_ifindex;
|
||||||
|
Loading…
Reference in New Issue
Block a user