codebendercc/npapiPlugins — pull request #39 by Konstantinacc (2014-09-20 11:47:28+00:00)
Title: Plugin version 1.6.0.7

Added function GetLastError in SetCommState function of win.cc in order to receive errror code when function fails.
Added return in winKillAvrdude() function if OpenProcess() fails.
Modified access to the process object in OpenProcess funcion in order to kill avrdude in Windows XP when process times out.
Simplified doflash function: Added function createCommand().
Simplified doflash function: Added function resetLeonardo().
Simplified doflash function: Added function LeonardoSketchControl().
Updated the time which has gone by before uploading using the port in which Leonardo board was connected for Linux and MAC OS.
Updated port that we were searching in LeonardoSketchControl(); now we wait until the bootloader serial port disconnects and the sketch serial port reconnects or time passes and never reconnects (timeout).
Added function availablePorts() which detects system's available ports in Linux, Windows and MAC OS.
Updated functions resetLeonardo() and LeonardoSketchControl(); instead of calling probeUSB() they call availablePorts() function.