Fix ConfigNames functin

This commit is contained in:
Steven Tracey 2024-11-21 17:10:40 -05:00
parent 94843fa797
commit c042721fa7
2 changed files with 4 additions and 6 deletions

View File

@ -15,9 +15,6 @@
#include "../libs/GUI/GUI_BMPfile.h"
#include "../libs/Config/Debug.h"
extern char** getConfigNames(int* length);
extern void freeCStringArray(char** cStrings, int length);
void Handler(int sigNum) {
DebugLine(28, 0, "Caught signal %d\n", sigNum);
EPD_2in13_V4_Init();
@ -34,8 +31,9 @@ void Handler(int sigNum) {
}
void home(UWORD *blackImage) {
int length;
char** configNames = getConfigNames(&length);
struct getConfigNames_return configNamesReturn = getConfigNames();
int length = configNamesReturn.r1;
char** configNames = configNamesReturn.r0;
if (configNames == NULL || length == 0) {
DebugLine(10, 0, "No configs found\n");

View File

@ -160,4 +160,4 @@ func getTimeRemainingMS(n int) uint64 {
return (uint64(n) * 1000) - (uint64(time.Now().UnixNano()/1e6) % (uint64(n) * 1000))
}
//func main() {}
func main() {}