add header guards, move declarations to source file

This commit is contained in:
Joey Castillo
2021-11-24 12:14:17 -05:00
parent 4a0ff55773
commit 3a420d5c6c
3 changed files with 25 additions and 15 deletions

View File

@@ -1,3 +1,6 @@
#ifndef TOTP_H_
#define TOTP_H_
#include <inttypes.h>
#include "time.h"
@@ -6,3 +9,5 @@ void setTimezone(uint8_t timezone);
uint32_t getCodeFromTimestamp(uint32_t timeStamp);
uint32_t getCodeFromTimeStruct(struct tm time);
uint32_t getCodeFromSteps(uint32_t steps);
#endif // TOTP_H_