MCUdude / MicroCore

A light-weight Arduino hardware package for ATtiny13

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

(Serial.read blocking) error

DominicanMS opened this issue · comments

Hello, try to compile the sketch "Menu Demo" and it presents the following error

class HalfDuplexSerial has no member named read_blocking; did you mean read_char_blocking?

commented

Really? I have no problems compiling this. Are you using a manual or board manager install?

read_blocking is defined here:

int16_t read_blocking(void);

int16_t HalfDuplexSerial::read_blocking(void)
{
#ifdef INTERRUPT_SERIAL_RX
while(!purx_dataready());
return pu_read();
#else
return purx();
#endif
}

I am using a manual install there is this is the error. board manager is compiled correctly

commented

Then you'll have to update your manual installation. If you're using git, you can just pull it again. If not, re-download the zip-file

download the current version to confirm, throw the same compilation error, drop arduino, reinstall it again it does the same

commented

Then you would have to figure out where Arduino IDE finds these files. The latest boards manager release is even with the master branch, so a manual install is exactly the same as a boards manager install. Turn on verbose compilation in the IDE settings, trace down the HalfDuplexSerial.h+cpp file and check if read_blocking is present.

Thanks, it was a problem with temporary files in C:\Users\PC\AppData\Local\arduino15
delete it, configure it again and it worked correctly