Merge branch 'developer' of github.com:slsdetectorgroup/slsDetectorPackage into developer

This commit is contained in:
Erik Frojdh 2019-05-14 16:53:59 +02:00
commit 0f8d099196
3 changed files with 2 additions and 1 deletions

View File

@ -28,6 +28,7 @@ int getUdPSocketDescriptor() {
int setUDPDestinationDetails(const char* ip, unsigned short int port) { int setUDPDestinationDetails(const char* ip, unsigned short int port) {
udpDestinationPort = port; udpDestinationPort = port;
size_t len = strlen(ip); size_t len = strlen(ip);
memset(udpDestinationIp, 0, MAX_STR_LENGTH);
strncpy(udpDestinationIp, ip, len > MAX_STR_LENGTH ? MAX_STR_LENGTH : len ); strncpy(udpDestinationIp, ip, len > MAX_STR_LENGTH ? MAX_STR_LENGTH : len );
if (udpServerAddrInfo) { if (udpServerAddrInfo) {

View File

@ -7,4 +7,4 @@
#define APIRECEIVER 0x190405 #define APIRECEIVER 0x190405
#define APIGUI 0x190405 #define APIGUI 0x190405
#define APIEIGER 0x190418 #define APIEIGER 0x190418
#define APICTB 0x190503 #define APICTB 0x190514