Properly implement Key loading
This commit is contained in:
parent
28e9124c09
commit
d7cc8d67e6
@ -37,6 +37,7 @@ int computeWidth(char* text, sFONT *font) {
|
||||
return (font->Width) * strlen(text);
|
||||
}
|
||||
|
||||
//TODO Put display to sleep after
|
||||
void code(UWORD *blackImage, char* confName) {
|
||||
int ch;
|
||||
codeLoop:
|
||||
|
@ -113,13 +113,16 @@ func loadConfigs() {
|
||||
}
|
||||
|
||||
config := otp.Config{
|
||||
Key: key,
|
||||
Hash: hashVar,
|
||||
TimeStep: timeStep,
|
||||
Counter: counter,
|
||||
Digits: digits,
|
||||
Format: format,
|
||||
}
|
||||
err = config.ParseKey(key)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
fileName := fileEntry.Name()
|
||||
ext := filepath.Ext(fileName)
|
||||
|
Loading…
Reference in New Issue
Block a user