Also ignore the above, it's important to -a 500 because -a 0 causes issues and you have to unplug / replug.
irtoy.exe -d COM2 -h -p -q -a 500 -f filename
- filename contains a sequence of files without any params (bin file per line). - also -h only works "glitch free" if you record short ir button presses. If you make a long recording, with a long press, -h crashes.
In main.h , there is a sleep(2000) which I would like to remove.
#ifdef _WIN32 Sleep(2000); // windows: Sleep for 2000 milliseconds <----- would like to remove this #else sleep(2); // linux: sleep for 2 secs #endif
serial_close(fd); FREE(param_port); FREE(param_speed); FREE(param_fname); FREE(param_buffin); printf("n Thank you for playing with the IR Toy! Utility version: %s. n", IRTOY_VERSION);