mirror of https://github.com/esphome/esphome.git
Apply clang-tidy style (for ESP32 Arduino 2/4) to Madoka component
This commit is contained in:
parent
fce6626b15
commit
1f450214c5
|
@ -364,9 +364,8 @@ void Madoka::parse_cb_(message msg) {
|
||||||
uint8_t argument_id = msg[i++];
|
uint8_t argument_id = msg[i++];
|
||||||
uint8_t len = msg[i++];
|
uint8_t len = msg[i++];
|
||||||
if (this->cur_status_.mode == 1) {
|
if (this->cur_status_.mode == 1) {
|
||||||
} else if (argument_id == 0x21 && len == 1 && this->cur_status_.mode == 4) {
|
} else if ((argument_id == 0x21 && len == 1 && this->cur_status_.mode == 4) ||
|
||||||
fan_mode = msg[i];
|
(argument_id == 0x20 && len == 1 && this->cur_status_.mode != 4)) {
|
||||||
} else if (argument_id == 0x20 && len == 1) {
|
|
||||||
fan_mode = msg[i];
|
fan_mode = msg[i];
|
||||||
}
|
}
|
||||||
i += len;
|
i += len;
|
||||||
|
|
|
@ -22,7 +22,7 @@ static const uint8_t BLE_SEND_MAX_RETRIES = 5;
|
||||||
namespace esphome {
|
namespace esphome {
|
||||||
namespace madoka {
|
namespace madoka {
|
||||||
|
|
||||||
static const char *TAG = "madoka";
|
static const char *const TAG = "madoka";
|
||||||
|
|
||||||
using chunk = std::vector<uint8_t>;
|
using chunk = std::vector<uint8_t>;
|
||||||
using message = std::vector<uint8_t>;
|
using message = std::vector<uint8_t>;
|
||||||
|
|
Loading…
Reference in New Issue