FutabaVfd.cpp
changeset 11 11a0e8a2346e
parent 10 4c3d32f38c09
     1.1 --- a/FutabaVfd.cpp	Wed May 21 22:43:19 2014 +0200
     1.2 +++ b/FutabaVfd.cpp	Wed May 21 22:55:14 2014 +0200
     1.3 @@ -206,7 +206,7 @@
     1.4  	report[7]=aHeight; //Y length before return. Though outside the specs, setting this to zero apparently allows us to modify a single pixel without touching any other.
     1.5  	report[8]=0x00; //Size of pixel data in bytes (MSB)
     1.6  	report[9]=aSize; //Size of pixel data in bytes (LSB)
     1.7 -	memset(report.Buffer()+10, aValue, KFutabaMaxHidReportSize);
     1.8 +	memset(report.Buffer()+10, aValue, aSize);
     1.9  	//iOutputReportBuffer[10]=aValue; //Pixel data
    1.10  	Write(report);
    1.11  	}