Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'class ACAN2515' has no member named 'receiveBufferPeakCount' #3

Closed
qwec01 opened this issue Jan 16, 2019 · 2 comments
Closed

'class ACAN2515' has no member named 'receiveBufferPeakCount' #3

qwec01 opened this issue Jan 16, 2019 · 2 comments

Comments

@qwec01
Copy link

qwec01 commented Jan 16, 2019

Following the PDF chapter 8.4, I just copied the example in 8.4 to the LoopBackDemo, to get the RecieveBufferPeakCount. But when I try to upload it, the IDE tells me "class ACAN2515' has no member named 'receiveBufferPeakCount", is there something wrong? please help. Thanks
My IDE is 1.8.7, Arduino board is pro mini.
code:
if (can.available ()) {
can.receive (frame) ;
gReceivedFrameCount ++ ;
Serial.print ("Received: ") ;
Serial.println (gReceivedFrameCount) ;
const uint16_t peak = can.receiveBufferPeakCount () ; //Line added
}

@pierremolinaro
Copy link
Owner

pierremolinaro commented Jan 16, 2019 via email

@qwec01
Copy link
Author

qwec01 commented Jan 16, 2019

It worked!
Thanks a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants