could it be \n?
This commit is contained in:
parent
780895b685
commit
602637905a
@ -54,7 +54,6 @@ void code(UWORD *blackImage, char* confName) {
|
||||
|
||||
GoString confStr = {confName, strlen(confName)};
|
||||
const char *code = getCode(confStr);
|
||||
DebugLine(3, 0, "Code: %s\n", code);
|
||||
Paint_DrawString(5, 20, code, &Font36, WHITE, BLACK);
|
||||
Paint_DrawString(8, 5, confName, &Font12, WHITE, BLACK);
|
||||
|
||||
@ -78,13 +77,11 @@ void code(UWORD *blackImage, char* confName) {
|
||||
if (i > lastI) break;
|
||||
startTime = clock();
|
||||
|
||||
DebugLine(4, 0, "Time Left: %d\n", i);
|
||||
double percentLeft = (double) i / (double) (30 * 1000);
|
||||
progBarEndIndex = 228 - (int) (228 * percentLeft);
|
||||
Paint_ClearWindows(progBarCurrentIndex, 113, progBarEndIndex, 95, WHITE);
|
||||
int line = 15;
|
||||
while (progBarCurrentIndex < progBarEndIndex) {
|
||||
DebugLine(line, 0, "Line: %d,113 - %d,95\n", progBarCurrentIndex, progBarEndIndex);
|
||||
Paint_DrawLine(progBarCurrentIndex, 113, progBarCurrentIndex, 95, BLACK, DOT_PIXEL_1X1,
|
||||
LINE_STYLE_SOLID);
|
||||
++progBarCurrentIndex;
|
||||
@ -94,9 +91,7 @@ void code(UWORD *blackImage, char* confName) {
|
||||
EPD_2in13_V4_Display_Partial(blackImage);
|
||||
endTime = clock();
|
||||
elapsedTime = (int) ((endTime - startTime) / CLOCKS_PER_SEC);
|
||||
DebugLine(5, 0, "Elapsed Time %d\n", elapsedTime);
|
||||
if (elapsedTime < 1000) {
|
||||
DebugLine(6, 0, "Delay for %dms\n", (1000 - (elapsedTime * 1000)));
|
||||
DEV_Delay_ms(1000 - (elapsedTime * 1000));
|
||||
}
|
||||
lastI = i;
|
||||
@ -119,7 +114,7 @@ void config(UWORD *blackImage, char* configName) {
|
||||
|
||||
DebugLine(14, 10, "MADE IT TO HERE --------------------------------------");
|
||||
|
||||
Paint_DrawString(5, 5, config, &Font12, WHITE, BLACK);
|
||||
Paint_DrawString(5, 5, "key: JBSWY3DPEHPK3PXP\ndigits: 4", &Font12, WHITE, BLACK);
|
||||
//Paint_DrawString(5, 5, getConfigReturn.r0, &Font12, WHITE, BLACK);
|
||||
EPD_2in13_V4_Display(blackImage);
|
||||
|
||||
@ -149,8 +144,6 @@ void totpHome(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;
|
||||
|
Loading…
Reference in New Issue
Block a user