Fix ConfigNames functin
This commit is contained in:
parent
94843fa797
commit
c042721fa7
@ -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");
|
||||
|
@ -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() {}
|
||||
|
Loading…
Reference in New Issue
Block a user