Skip to content

Commit 251fb50

Browse files
authored
Merge pull request #116 from AxxAxx/dev
Dev
2 parents ff0e1fb + 5225561 commit 251fb50

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

AxxSolder_firmware/Core/Src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
/* USER CODE BEGIN PTD */
4343
uint8_t fw_version_major = 3;
4444
uint8_t fw_version_minor = 4;
45-
uint8_t fw_version_patch = 1;
45+
uint8_t fw_version_patch = 2;
4646

4747
//#define PID_TUNING
4848
DEBUG_VERBOSITY_t debugLevel = DEBUG_INFO;

AxxSolder_firmware/Drivers/LCD/lcd.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,15 @@ void LCD_SetRotation(uint8_t m)
311311
break;
312312
}
313313
LCD_WriteCommand(cmd, sizeof(cmd)-1);
314+
//Add a piece to correctly render the UG_FillScreen() function.
315+
// Display size update
316+
if (m % 2 == 1) {
317+
device.x_dim = LCD_HEIGHT;
318+
device.y_dim = LCD_WIDTH;
319+
} else {
320+
device.x_dim = LCD_WIDTH;
321+
device.y_dim = LCD_HEIGHT;
322+
}
314323
}
315324

316325

0 commit comments

Comments
 (0)