summaryrefslogtreecommitdiffstats
path: root/src/device/protocol_device_private.h
diff options
context:
space:
mode:
authorGravatar Ramūnas Mažeikis <ramunasnezinomas@gmail.com> 2019-05-21 20:01:08 +0300
committerGravatar Ramūnas Mažeikis <ramunasnezinomas@gmail.com> 2019-05-21 20:01:08 +0300
commitfe71239fc0d1e65e06ba9dcf2fb35239bff21466 (patch)
treee1e708310afc253ca006bb22558cc8cba67bdfb6 /src/device/protocol_device_private.h
parent5ca7e24e58f6bd657787b9235247149ffff420ae (diff)
downloadusurpation-fe71239fc0d1e65e06ba9dcf2fb35239bff21466.tar.gz
usurpation-fe71239fc0d1e65e06ba9dcf2fb35239bff21466.tar.bz2
usurpation-fe71239fc0d1e65e06ba9dcf2fb35239bff21466.zip
Protocol: moved udp code out of main.
An effor was made to increase modularity of device code. It was a partial success. IP adress, communications port, and wifi login details had to be made static and visible in main. Time is scarce and I am not about to push this further. Signed-off-by: Ramūnas Mažeikis <ramunasnezinomas@gmail.com>
Diffstat (limited to 'src/device/protocol_device_private.h')
-rwxr-xr-xsrc/device/protocol_device_private.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/device/protocol_device_private.h b/src/device/protocol_device_private.h
index 29ff567..6754ecf 100755
--- a/src/device/protocol_device_private.h
+++ b/src/device/protocol_device_private.h
@@ -9,8 +9,7 @@
* bigger packets but memory is hard to come by and more won't be needed
* anyway.
* */
-#define MAX_PACKET_SIZE_IN (512)
-
+#define MAX_PACKET_SIZE_IN 512
/**
* Device only gets one connection. Because daemon.
*/