1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-07-27 18:02:17 +03:00

emulation on host: option for FS persistence location (#7424)

* fix warnings
* emulation on host: option -P to change FS persistence location
* exit on SIGTERM too, with SIGINT
This commit is contained in:
david gauchard
2020-07-03 19:10:08 +02:00
committed by GitHub
parent f1651fba89
commit cc1cc0b2ce
3 changed files with 49 additions and 18 deletions

View File

@ -90,8 +90,8 @@ bool mockUDPListen (int sock, uint32_t dstaddr, uint16_t port, uint32_t mcast)
else
mockverbose("UDP server on port %d (sock=%d)\n", mockport, sock);
if (!mcast)
mcast = inet_addr("224.0.0.1"); // all hosts group
if (!mcast)
mcast = inet_addr("224.0.0.1"); // all hosts group
if (mcast)
{
// https://web.cs.wpi.edu/~claypool/courses/4514-B99/samples/multicast.c
@ -121,7 +121,7 @@ bool mockUDPListen (int sock, uint32_t dstaddr, uint16_t port, uint32_t mcast)
return false;
}
else
mockverbose("joined multicast group addr %08lx\n", ntohl(mcast));
mockverbose("joined multicast group addr %08lx\n", (long)ntohl(mcast));
}
return true;