| 78 | } |
| 79 | |
| 80 | uint16_t MBUSParser::write(const uint8_t* d, DataParserContext &ctx) { |
| 81 | if(buf != NULL) { |
| 82 | memcpy((uint8_t *) d, buf, pos); |
| 83 | ctx.length = pos; |
| 84 | } |
| 85 | return 0; |
| 86 | } |
| 87 | |
| 88 | uint8_t MBUSParser::checksum(const uint8_t* p, int len) { |
| 89 | uint8_t ret = 0; |
no outgoing calls
no test coverage detected