Skip to content

Commit

Permalink
Add gitignore for .map & obj/ and update Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
jshin313 committed Oct 31, 2023
1 parent 6cccc07 commit c465946
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 7 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*.map
obj
10 changes: 5 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
# Set COMPRESSED to "YES" to create a compressed program
# ----------------------------

NAME ?= OTP
COMPRESSED ?= NO
ICON ?= icon.png
DESCRIPTION ?= "OTP for the TI-84+ CE"
NAME = OTP
COMPRESSED = NO
ICON = icon.png
DESCRIPTION = "OTP for the TI-84+ CE"

# ----------------------------

include $(CEDEV)/include/.makefile
include $(shell cedev-config --makefile)
Binary file modified bin/OTP.8xp
Binary file not shown.
Binary file modified bin/OTP.bin
Binary file not shown.
Binary file modified main
100644 → 100755
Binary file not shown.
4 changes: 2 additions & 2 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ int main(void)
uint8_t* key;
size_t keylen;

char* b32key = "JBSWY3DPEHPK3PXP";
char* b32key = "J43EYWKOKBBUOWSVKJHUYWCRKZHVARZWJA2VQVKUJBBFASJSJZHQ====";
int len = strlen(b32key);

// Input key must be divisible by 8
Expand All @@ -53,6 +53,7 @@ int main(void)

key = malloc(keylen);
base32_decode(b32key, key, keylen);
uint32_t code = totp(key, keylen, 30, 6);

#ifndef REGULAR

Expand Down Expand Up @@ -87,7 +88,6 @@ int main(void)
double dt = 0;
uint8_t currSec = 0;

uint32_t code = totp(key, keylen, 30, 6);
size_t time_step = 30;
uint8_t seconds;

Expand Down

0 comments on commit c465946

Please sign in to comment.