202// seems some MINGW versions don't have a errno_t
203#ifndef errno_t
204#define errno_t int
205#endif
206
207#define fopen_s fopen
208
209
210#endif
211
212//#define MAX_TRIES 3 // Retry sends up to 3 times
213#define MAX_TRIES 1 // set this to one, as I believe now that a ACK failure is indication that the device is offline, hence additional attempts will not work.
214#define MAX_MAX_TRIES 7 // Don't exceed this retry limit
215#define ACK_TIMEOUT 1000 // How long to wait for an ACK