Revise VescWritableInterface

This commit is contained in:
Matthias Grob
2021-04-29 11:47:32 +02:00
parent 67b5633d55
commit 4c52798b18
5 changed files with 8 additions and 18 deletions
+1 -7
View File
@@ -122,13 +122,7 @@ size_t VescDriver::sendPacket(const uint8_t *payload, uint16_t payload_length, c
packet_buffer[index++] = 3;
// Write bytes out through callback interface
size_t ret{0};
if (_vesc_writable) {
ret = _vesc_writable->writeCallback(packet_buffer, index);
}
return ret;
return _vesc_writable.writeCallback(packet_buffer, index);
}
void VescDriver::parseInputByte(uint8_t byte)