src/FutabaVfd.cpp
changeset 22 efa6ff02287c
parent 21 7d89d719583e
child 23 d4e164906a1b
     1.1 --- a/src/FutabaVfd.cpp	Thu May 22 14:57:11 2014 +0200
     1.2 +++ b/src/FutabaVfd.cpp	Thu May 22 16:46:50 2014 +0200
     1.3 @@ -239,11 +239,21 @@
     1.4      report[3]=0x5B; //Command ID
     1.5      report[4]=aDw;  //Specify our DW
     1.6      report[5]=aX;   //X coordinate of our DW top-left corner
     1.7 -    report[5]=aY;   //Y coordinate of our DW top-left corner
     1.8 +    report[6]=aY;   //Y coordinate of our DW top-left corner
     1.9      Write(report);
    1.10      }
    1.11  
    1.12  /**
    1.13 +Change our display position within our buffer.
    1.14 +*/
    1.15 +void GP1212A01A::SetDisplayPosition(int aX, int aY)
    1.16 +	{
    1.17 +	//Specs apparently says both DW should remain the same
    1.18 +	//Just don't ask
    1.19 +    SetDisplayPosition(GP1212A01A::DW1,aX,aY);
    1.20 +    SetDisplayPosition(GP1212A01A::DW2,aX,aY);
    1.21 +	}
    1.22 +/**
    1.23  */
    1.24  void GP1212A01A::RequestId()
    1.25      {