edited SW
This commit is contained in:
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"
|
||||||
|
7
c/prog.c
7
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;
|
||||||
|
Reference in New Issue
Block a user