| 80 | } |
| 81 | |
| 82 | void 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 | |
| 97 | void Can232::setFilterFunc(INT8U (*userFunc)(INT32U)) { |
| 98 | instance()->userAddressFilterFunc = userFunc; |