MCPcopy Create free account
hub / github.com/Seeed-Studio/Seeed_Arduino_CAN / initFunc

Method initFunc

src/can-serial.cpp:82–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80}
81
82void Can232::initFunc() {
83 if (!inputString.reserve(LW232_INPUT_STRING_BUFFER_SIZE)) {
84 dbg0("inputString.reserve failed in initFunc. less optimal String work is expected");
85 }
86 // lw232AutoStart = true; //todo: read from eeprom
87 // lw232AutoPoll = false; //todo: read from eeprom
88 // lw232TimeStamp = //read from eeprom
89 // lw232Message[0] = 'Z'; lw232Message[1] = '1'; exec();
90 //if (lw232AutoStart) {
91 inputString = "O\x0D";
92 stringComplete = true;
93 loopFunc();
94 //}
95}
96
97void Can232::setFilterFunc(INT8U (*userFunc)(INT32U)) {
98 instance()->userAddressFilterFunc = userFunc;

Callers 1

initMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected