LanguidSmartass/mdb-arduino-cashless

undeclared vars

llino opened this issue · 3 comments

llino commented

when compiling, I am getting undefined vars:
PORTC, in MDB.c
switch (csh_state) { case CSH_S_INACTIVE : /*PORTC = 0; PORTC |= (1 << 0);*/ break; case CSH_S_DISABLED : /*PORTC = 0; PORTC |= (1 << 1);*/ break; case CSH_S_ENABLED : PORTC = 0; PORTC |= (1 << 2); break; case CSH_S_SESSION_IDLE : PORTC = 0; PORTC |= (1 << 3); break; case CSH_S_VEND : PORTC = 0; PORTC |= (1 << 4); break; default : break; }

UCSR0A, in USUART.c

is there any setting that I am missing?

Thanks

That's strange.
Try to check for "#include <avr/io.h>", UCSR0A should be defined somewhere up the chain of includes.
Can you please be more specific on your toolchain?

llino commented

Thanks for the quick response!
I was compiling for the wrong board... I was compiling for esp8266 instead of arduino Uno :(
In Arduino IDE changing now to Uno board.

llino commented

Can confirm that changing board to Uno, MDB_SlaveAutonomous.ino compiles sucessfully.
Thanks for the help and great job with this project 💯