From e52dc45b032c36a8fe2106955156764c5353b6bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mario=20H=C3=BCttel?= Date: Fri, 6 Apr 2018 18:14:12 +0200 Subject: [PATCH] edited SW --- c/README | 1 + c/prog.c | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/c/README b/c/README index 64220e0..0314012 100644 --- a/c/README +++ b/c/README @@ -6,6 +6,7 @@ mode: 2: green 3: blue 4: off +5: white IFNAME: Interface name like "eth0" or "enp5s0" diff --git a/c/prog.c b/c/prog.c index 60b25ba..e3d534d 100644 --- a/c/prog.c +++ b/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 */ socket_address.sll_ifindex = if_idx.ifr_ifindex;