Skip to content

Commit 4e6ec8c

Browse files
committed
fix/stm32-firmware: Re-enable i2c-slave code, fix post-code display of characters, bump userapp to v1.1
1 parent 131d957 commit 4e6ec8c

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

firmware/userapp/Core/Src/display.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ void Display_ShowCode(uint16_t code, uint8_t segment) {
145145
snprintf(lcd_buf, sizeof(lcd_buf), "%04X", code);
146146

147147
u8g2_ClearDisplay(&myDisplay);
148-
u8g2_SetFont(&myDisplay, u8g2_font_luBS14_tn);
148+
u8g2_SetFont(&myDisplay, u8g2_font_luBS14_tr);
149149
u8g2_DrawStr(&myDisplay, 4, 32, lcd_buf);
150150
u8g2_SetFont(&myDisplay, u8g2_font_7x13_mr);
151151
u8g2_DrawStr(&myDisplay, 12, 10, seg_name);

firmware/userapp/Core/Src/main.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ __attribute__((used))
7070
const tombstone_t tombstone = {
7171
.magic = UAPP_MAGIC,
7272
.ver_major = 1,
73-
.ver_minor = 0,
73+
.ver_minor = 1,
7474
.size = 0x5A53, // ASCII: SZ
7575
.crc = 0x00435243, // ASCII: CRC + \0
7676
.reserved = {0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF },
@@ -110,7 +110,7 @@ int main(void)
110110
MX_CRC_Init();
111111
/* USER CODE BEGIN 2 */
112112
Display_Init();
113-
//Slave_Init();
113+
Slave_Init();
114114
/* USER CODE END 2 */
115115

116116
/* Infinite loop */

0 commit comments

Comments
 (0)