Page 1 of 1

issue with serial.find

Posted: 16 Dec 2017 20:51
by vebryn
Hi,

I'm trying following code in order to find a string into Serial :

Code: Select all

void loop() {
  char target[] = "abc";
  Serial.find(target);
}
At compilation, I get following error :

Code: Select all

Compiling file "Stream_ucxx.c" by means of SDCC...
Stream_ucxx.c:438: warning 85: in function __cxx__Stream__method__read_00 unreferenced local variable : 'cxx_sloc'
Stream_ucxx.c:474: error 20: Undefined identifier '__xloc____cxx__Stream__method__findUntil_04p0d09p0d09__ut'
Stream_ucxx.c:474: error 20: Undefined identifier '__xloc____cxx__Stream__method__findUntil_04p0d09p0d09__ut'
Stream_ucxx.c:474: warning 127: non-pointer type cast to generic pointer
from type 'int fixed'
  to type 'struct MultiTarget generic* fixed'
Stream_ucxx.c:485: error 20: Undefined identifier '__xloc____cxx__Stream__method__findUntil_04p0d09p0d09__ut'
Stream_ucxx.c:485: error 20: Undefined identifier '__xloc____cxx__Stream__method__findUntil_04p0d09p0d09__ut'
Stream_ucxx.c:485: warning 127: non-pointer type cast to generic pointer
from type 'int fixed'
  to type 'struct MultiTarget generic* fixed'
-:0: warning 85: in function __cxx__Stream__method__findUntil_04p0d09p0d09 unreferenced function argument : 'target'
-:0: warning 85: in function __cxx__Stream__method__findUntil_04p0d09p0d09 unreferenced function argument : 'targetLen'
-:0: warning 85: in function __cxx__Stream__method__findUntil_04p0d09p0d09 unreferenced function argument : 'termLen'
Do you have a find usage ?

Best regards.

Re: issue with serial.find

Posted: 16 Dec 2017 22:05
by vebryn
There is an error into find/findUntil functions, please read https://github.com/Z-Wave-Me/Z-Uno-Core/pull/113.