File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -118,16 +118,16 @@ bool ft6x36_read(lv_indev_drv_t *drv, lv_indev_data_t *data) {
118118    last_x  =  ((data_buf [1 ] &  FT6X36_MSB_MASK ) << 8 ) | (data_buf [2 ] &  FT6X36_LSB_MASK );
119119    last_y  =  ((data_buf [3 ] &  FT6X36_MSB_MASK ) << 8 ) | (data_buf [4 ] &  FT6X36_LSB_MASK );
120120
121+ #if  CONFIG_LV_FT6X36_SWAPXY 
122+     int16_t  swap_buf  =  last_x ;
123+     last_x  =  last_y ;
124+     last_y  =  swap_buf ;
125+ #endif 
121126#if  CONFIG_LV_FT6X36_INVERT_X 
122127    last_x  =   LV_HOR_RES  -  last_x ;
123128#endif 
124129#if  CONFIG_LV_FT6X36_INVERT_Y 
125130    last_y  =  LV_VER_RES  -  last_y ;
126- #endif 
127- #if  CONFIG_LV_FT6X36_SWAPXY 
128-     int16_t  swap_buf  =  last_x ;
129-     last_x  =  last_y ;
130-     last_y  =  swap_buf ;
131131#endif 
132132    data -> point .x  =  last_x ;
133133    data -> point .y  =  last_y ;
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments