Page 1 of 1

'OBD_RECV_BUF_SIZE' was not declared in this scope

Posted: Sat Jan 09, 2016 3:15 pm
by Blanko
hello ya all,

newbie here, i have down load the latest files, have all the libraries install but Im getting this error:

In file included from /Downloads/megalogger-src-20150509-2/megalogger/megalogger.ino:14:0:
/Documents/Arduino/libraries/MultiLCD/MultiLCD.h:55:43: warning: '__progmem__' attribute ignored [-Wattributes]
virtual void draw(const PROGMEM byte* buffer, uint16_t width, uint16_t height) {}
^
/Documents/Arduino/libraries/MultiLCD/MultiLCD.h:56:43: warning: '__progmem__' attribute ignored [-Wattributes]
virtual void draw(const PROGMEM byte* buffer, uint16_t width, uint16_t height, byte scaleX, byte scaleY = 0) {}
^
/Documents/Arduino/libraries/MultiLCD/MultiLCD.h:57:47: warning: '__progmem__' attribute ignored [-Wattributes]
virtual void draw4bpp(const PROGMEM byte* buffer, uint16_t width, uint16_t height) {}
^
/Documents/Arduino/libraries/MultiLCD/MultiLCD.h:113:35: warning: '__progmem__' attribute ignored [-Wattributes]
void draw(const PROGMEM byte* buffer, uint16_t width, uint16_t height);
^
/Documents/Arduino/libraries/MultiLCD/MultiLCD.h:114:35: warning: '__progmem__' attribute ignored [-Wattributes]
void draw(const PROGMEM byte* buffer, uint16_t width, uint16_t height, byte scaleX, byte scaleY = 0);
^
/Users/eduardoblanco/Documents/Arduino/libraries/MultiLCD/MultiLCD.h:115:39: warning: '__progmem__' attribute ignored [-Wattributes]
void draw4bpp(const PROGMEM byte* buffer, uint16_t width, uint16_t height);
^
/Documents/Arduino/libraries/MultiLCD/MultiLCD.h:186:35: warning: '__progmem__' attribute ignored [-Wattributes]
void draw(const PROGMEM byte* buffer, uint16_t width, uint16_t height);
^
/Documents/Arduino/libraries/MultiLCD/MultiLCD.h:187:35: warning: '__progmem__' attribute ignored [-Wattributes]
void draw(const PROGMEM byte* buffer, uint16_t width, uint16_t height, byte scaleX, byte scaleY = 0);
^
/Documents/Arduino/libraries/MultiLCD/MultiLCD.h:242:35: warning: '__progmem__' attribute ignored [-Wattributes]
void draw(const PROGMEM byte* buffer, uint16_t width, uint16_t height);
^
/Documents/Arduino/libraries/MultiLCD/MultiLCD.h:243:35: warning: '__progmem__' attribute ignored [-Wattributes]
void draw(const PROGMEM byte* buffer, uint16_t width, uint16_t height, byte scaleX, byte scaleY = 0);
^
/Documents/Arduino/libraries/MultiLCD/MultiLCD.h:244:39: warning: '__progmem__' attribute ignored [-Wattributes]
void draw4bpp(const PROGMEM byte* buffer, uint16_t width, uint16_t height);
^
/Documents/Arduino/libraries/MultiLCD/MultiLCD.h:297:35: warning: '__progmem__' attribute ignored [-Wattributes]
void draw(const PROGMEM byte* buffer, uint16_t width, uint16_t height);
^
/Documents/Arduino/libraries/MultiLCD/MultiLCD.h:298:35: warning: '__progmem__' attribute ignored [-Wattributes]
void draw(const PROGMEM byte* buffer, uint16_t width, uint16_t height, byte scaleX, byte scaleY = 0);
^
/Documents/Arduino/libraries/MultiLCD/MultiLCD.h:299:39: warning: '__progmem__' attribute ignored [-Wattributes]
void draw4bpp(const PROGMEM byte* buffer, uint16_t width, uint16_t height);
^
In file included from /Downloads/megalogger-src-20150509-2/megalogger/megalogger.ino:24:0:
sketch/datalogger.h: In member function 'void CDataLogger::logData(uint16_t, int)':
sketch/datalogger.h:102:55: warning: narrowing conversion of 'value' from 'int' to 'float' inside { } [-Wnarrowing]
LOG_DATA_COMM ld = {dataTime, pid, 1, 0, value};

^
sketch/datalogger.h: In member function 'void CDataLogger::logData(uint16_t, int32_t)':
sketch/datalogger.h:120:55: warning: narrowing conversion of 'value' from 'int32_t {aka long int}' to 'float' inside { } [-Wnarrowing]
LOG_DATA_COMM ld = {dataTime, pid, 1, 0, value};

^
sketch/datalogger.h: In member function 'void CDataLogger::logData(uint16_t, int, int, int)':
sketch/datalogger.h:138:74: warning: narrowing conversion of 'value1' from 'int' to 'float' inside { } [-Wnarrowing]
LOG_DATA_COMM ld = {dataTime, pid, 3, 0, {value1, value2, value3}};

^
sketch/datalogger.h:138:74: warning: narrowing conversion of 'value2' from 'int' to 'float' inside { } [-Wnarrowing]
sketch/datalogger.h:138:74: warning: narrowing conversion of 'value3' from 'int' to 'float' inside { } [-Wnarrowing]
/Downloads/megalogger-src-20150509-2/megalogger/megalogger.ino: In function 'void logOBDData(byte)':
megalogger:535: error: 'OBD_RECV_BUF_SIZE' was not declared in this scope
char buffer[OBD_RECV_BUF_SIZE];

^
/Downloads/megalogger-src-20150509-2/megalogger/megalogger.ino: In function 'void testOut()':
megalogger:673: error: 'OBD_RECV_BUF_SIZE' was not declared in this scope
char buf[OBD_RECV_BUF_SIZE];

^
megalogger:684: error: 'buf' was not declared in this scope
if (obd.sendCommand(cmd, buf)) {

^
/Downloads/megalogger-src-20150509-2/megalogger/megalogger.ino: In function 'void setup()':
megalogger:769: error: 'OBD_RECV_BUF_SIZE' was not declared in this scope
char buf[OBD_RECV_BUF_SIZE];

^
megalogger:770: error: 'buf' was not declared in this scope
if (obd.getVIN(buf)) {

^
exit status 1
'OBD_RECV_BUF_SIZE' was not declared in this scope


Any Ideas?

Thanks

Re: 'OBD_RECV_BUF_SIZE' was not declared in this scope

Posted: Sun Jan 10, 2016 11:17 pm
by stanley
Please update both library and sketch to latest ones in github.

Re: 'OBD_RECV_BUF_SIZE' was not declared in this scope

Posted: Mon Jan 11, 2016 10:45 am
by Blanko
It works!!

Thank you.

can I add a NRF24L01 in serial 3? if yes, what pins to use.

Re: 'OBD_RECV_BUF_SIZE' was not declared in this scope

Posted: Mon Jan 11, 2016 10:50 am
by Blanko
My bad, I mean serial 1, cos the screen take all the pins.

Re: 'OBD_RECV_BUF_SIZE' was not declared in this scope

Posted: Wed Jan 13, 2016 3:12 pm
by stanley
NRF24L01 only connects via SPI.