File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
firmware/MAD_FW_1_0/matrix Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -525,8 +525,6 @@ volatile unsigned char matrix_display_buffer[MATRIX_DISPLAY_BUFFER_LENGTH];
525525
526526static void matrix_row (volatile unsigned char column )
527527{
528- matrix_row_clear ();
529-
530528 if (matrix_display_buffer [0 ] & (1 <<column ))
531529 {
532530 PORTB .OUTSET = MATRIX_PINB_DR1 ;
@@ -565,8 +563,6 @@ static void matrix_column_clear()
565563
566564static void matrix_column (volatile unsigned char column )
567565{
568- matrix_column_clear ();
569-
570566 switch (column )
571567 {
572568 case 0 :
@@ -593,6 +589,8 @@ volatile unsigned char matrix_col_position;
593589
594590void matrix_refresh (void )
595591{
592+ matrix_column_clear ();
593+ matrix_row_clear ();
596594 matrix_column (matrix_col_position );
597595 matrix_row (matrix_col_position );
598596
You can’t perform that action at this time.
0 commit comments