Skip to content

Commit 7e69891

Browse files
committed
Compilation fixes. (Why did it pop up now?)
1 parent 6ad4b4e commit 7e69891

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

right/src/macros/commands.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -151,10 +151,10 @@ bool Macros_CurrentMacroKeyIsActive()
151151

152152
static macro_result_t writeNum(uint32_t a)
153153
{
154-
char num[11];
155-
num[10] = '\0';
154+
char num[12];
155+
num[11] = '\0';
156156
int at = 10;
157-
while ((a > 0 || at == 10) && at > 0) {
157+
while ((a > 0 || at == 10) && at > 1) {
158158
at--;
159159
num[at] = a % 10 + 48;
160160
a = a/10;

right/src/segment_display.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
uint16_t changeInterval = 1500;
2020
uint32_t lastChange = 0;
2121
segment_display_slot_record_t slots[SegmentDisplaySlot_Count] = {
22-
[SegmentDisplaySlot_Keymap] = { .text = " ", .active = true, .len = 3 }
22+
[SegmentDisplaySlot_Keymap] = { .text = { ' ', ' ', ' ' }, .active = true, .len = 3 }
2323
};
2424
uint8_t activeSlotCount = 1;
2525
segment_display_slot_t currentSlot = SegmentDisplaySlot_Keymap;

0 commit comments

Comments
 (0)