some changes for P60Dock cookie

This commit is contained in:
2020-12-05 14:52:18 +01:00
parent 47b6485e29
commit a195f63acb
4 changed files with 6 additions and 8 deletions

View File

@ -1,8 +1,8 @@
#include "bsp_linux/comIF/cookies/P60DockCookie.h"
P60DockCookie::P60DockCookie(char* canInterface_, uint8_t cspAddress_) :
canInterface(canInterface_), cspAddress(cspAddress_) {
P60DockCookie::P60DockCookie(uint8_t cspAddress_) :
cspAddress(cspAddress_) {
}

View File

@ -16,10 +16,9 @@ class P60DockCookie: public CookieIF {
public:
/**
* Constructor for the CSP cookie
* @param canInterface_ The CAN interface to use. E.g. "can0" or "can1".
* @param cspAddress_ The CSP address of the target device.
*/
P60DockCookie(char* canInterface_, uint8_t cspAddress_);
P60DockCookie(uint8_t cspAddress_);
virtual ~P60DockCookie();
uint8_t getCspAddress();
@ -40,7 +39,7 @@ public:
private:
char* canInterface;
char canInterface[5] = "can0";
uint8_t cspAddress;
int bitrate = 1000;
MessageType_t nextMessage = MESSAGE_NONE;