Multiple configs break
This commit is contained in:
parent
f65782fb7e
commit
bf87eb596a
@ -40,6 +40,8 @@ void home(UWORD *blackImage) {
|
||||
int length = configNamesReturn.r1;
|
||||
char** configNames = configNamesReturn.r0;
|
||||
|
||||
DebugLine(12, 0, "Len: %d\n", length);
|
||||
|
||||
if (configNames == NULL || length == 0) {
|
||||
DebugLine(10, 0, "No configs found\n");
|
||||
return;
|
||||
@ -50,7 +52,10 @@ void home(UWORD *blackImage) {
|
||||
Paint_SelectImage(blackImage);
|
||||
Paint_Clear(WHITE);
|
||||
|
||||
for (int i = 0; i < length; ++i) {
|
||||
for (int i = 0; i < length; i++) {
|
||||
if (configNames[i] == NULL) {
|
||||
DebugLine(13, 0, "Null Config: %d\n", i);
|
||||
}
|
||||
Paint_DrawString(5, 5 + (i * 20), configNames[i], &Font12, WHITE, BLACK);
|
||||
}
|
||||
EPD_2in13_V4_Display_Base(blackImage);
|
||||
|
Loading…
Reference in New Issue
Block a user