issue with serial.find

Discussion about Z-Uno product. Visit http://z-uno.z-wave.me for more details.
Post Reply
vebryn
Posts: 18
Joined: 16 Dec 2017 02:38

issue with serial.find

Post by vebryn » 16 Dec 2017 20:51

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.

vebryn
Posts: 18
Joined: 16 Dec 2017 02:38

Re: issue with serial.find

Post by vebryn » 16 Dec 2017 22:05

There is an error into find/findUntil functions, please read https://github.com/Z-Wave-Me/Z-Uno-Core/pull/113.

Post Reply