You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
}
The text was updated successfully, but these errors were encountered:
Hello,
Indeed, I forgot to implement this function.
The fix is to add it in the file ACAN2515.h, for example after the receive buffer declaration:
public: inline uint16_t receiveBufferPeakCount (void) const {
return mReceiveBuffer.peakCount () ;
}
I will distribute soon a new release with this bug fix.
Best regards,
Pierre
Le 16 janv. 2019 à 05:05, qwec01 ***@***.***> a écrit :
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 }
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub <#3>, or mute the thread <https://github.com/notifications/unsubscribe-auth/ASys1Fh9ZdjZeXo8p2yxUaDohoA797Zoks5vDqT-gaJpZM4aCRkv>.
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
}
The text was updated successfully, but these errors were encountered: