Fix rf_bridge send and receive (#1180)

* Fix rf_bridge send and receive

* rf_bridge clang-format changes

* rf_bridge pased data bug fix

* rf_bridge logvv included for parsed data
This commit is contained in:
Víctor Ferrer García
2020-07-23 15:27:22 +02:00
committed by GitHub
parent 10e411f8c1
commit f29622abe1
2 changed files with 58 additions and 36 deletions
+3 -3
View File
@@ -45,10 +45,10 @@ class RFBridgeComponent : public uart::UARTDevice, public Component {
protected:
void ack_();
void decode_();
bool parse_bridge_byte_(uint8_t byte);
unsigned long last_ = 0;
unsigned char uartbuf_[RF_MESSAGE_SIZE + 3] = {0};
unsigned char uartpos_ = 0;
std::vector<uint8_t> rx_buffer_;
uint32_t last_bridge_byte_{0};
CallbackManager<void(RFBridgeData)> callback_;
};