Permalink
Browse files

Corrected V3.3 and V3.2 - fixed issue with display not loading for AVRs.

  • Loading branch information...
1 parent 926e4cb commit 3702b46513ec6fc61223f841ee7d14f4772c1e99 @TCWORLD committed Jan 12, 2013
View
Binary file not shown.
View
Binary file not shown.
View
@@ -592,7 +592,7 @@ void gLCD::Clear(){
Window(0,0,131,131); //Create a window the size of the screen
(*this.*setSendColour)(0);//All pixels are the same colour, so do the calculation only once
- for (DEFAULT_DATA_TYPE i = 0;i < 8844;i++){
+ for (DEFAULT_MID_DATA_TYPE i = 0;i < 8844;i++){
(*this.*sendTwoPixels)(); //send the rest using the existing colours
}
}
@@ -931,7 +931,7 @@ void gLCD::Line(){
DEFAULT_SIGNED_DATA_TYPE xdir = 1; //Amount by which X changes
DEFAULT_SIGNED_DATA_TYPE ydir = 1; //Amount by which Y changes
DEFAULT_MID_SIGNED_DATA_TYPE error;
- DEFAULT_DATA_TYPE i;
+ DEFAULT_MID_DATA_TYPE i;
DEFAULT_SIGNED_DATA_TYPE X = X1;
DEFAULT_SIGNED_DATA_TYPE Y = Y1;
View
@@ -634,7 +634,7 @@ void gLCD::Clear(){
Window(0,0,131,131); //Create a window the size of the screen
(*this.*setSendColour)(0);//All pixels are the same colour, so do the calculation only once
- for (DEFAULT_DATA_TYPE i = 0;i < 8844;i++){
+ for (DEFAULT_MID_DATA_TYPE i = 0;i < 8844;i++){
(*this.*sendTwoPixels)(); //send the rest using the existing colours
}
}
@@ -982,7 +982,7 @@ void gLCD::Line(){
DEFAULT_MID_SIGNED_DATA_TYPE xdir = 1; //Amount by which X changes
DEFAULT_MID_SIGNED_DATA_TYPE ydir = 1; //Amount by which Y changes
DEFAULT_MID_SIGNED_DATA_TYPE error;
- DEFAULT_DATA_TYPE i;
+ DEFAULT_MID_DATA_TYPE i;
DEFAULT_MID_SIGNED_DATA_TYPE X = X1;
DEFAULT_MID_SIGNED_DATA_TYPE Y = Y1;

0 comments on commit 3702b46

Please sign in to comment.