bad RS232 handling for windows
Brought to you by:
ddouxchamps
The current release of libvisca has a unsecure handling of the RS232. There is no timeout, the handshaking isn't disabled, the ibuf[] can overflow while waiting for the VISCA_TERMINATOR.
Due to changes in the platform SDK, libvisca can't be build with Visual-Studio (2005 Express here).
The attached patch fixes this and fixes bugs in the packet generation of set_whitebal_one_push (VISCA_SB_PUSH isn't correct, must be 0x10). If added VISCA_WB_TRIGGER (0x10) for this case and I added two more defines as parameter for set_focus_auto. visca_cli mentions a boolean parameter, which isn't correct.
cvs diff of my local repository