From 27992079c057ea068a355e01365800d77b7ace13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ram=C5=ABnas=20Ma=C5=BEeikis?= Date: Wed, 22 May 2019 14:56:59 +0300 Subject: Protocol: attempted to fix stupids. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ramūnas Mažeikis --- include/udp.h | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) mode change 100755 => 100644 include/udp.h (limited to 'include/udp.h') diff --git a/include/udp.h b/include/udp.h old mode 100755 new mode 100644 index 358e585..0bf43ff --- a/include/udp.h +++ b/include/udp.h @@ -1,16 +1,16 @@ -#ifndef DEVICE_UDP_H -#define DEVICE_UDP_H - -#include -#include - -static const int com_port = 6996; -IPAddress ip; /* Daemon IP */ -WiFiUDP Udp; - -extern void discover_client(const int port); -extern void udp_init_packet(IPAddress ip, const int port); -extern void udp_push(const void * const data, const size_t size); -extern int udp_flush(void); - +#ifndef DEVICE_UDP_H +#define DEVICE_UDP_H + +#include +#include + +static const int com_port = 6996; +IPAddress ip; /* Daemon IP */ +WiFiUDP Udp; + +extern void discover_client(const int port); +extern void udp_init_packet(IPAddress ip, const int port); +extern void udp_push(const void * const data, const size_t size); +extern int udp_flush(void); + #endif /* DEVICE_UDP_H */ \ No newline at end of file -- cgit v1.2.3