mirror of
https://github.com/esphome/esphome.git
synced 2024-11-28 09:44:12 +01:00
check
This commit is contained in:
parent
5a404d98fc
commit
0821fb8089
1 changed files with 2 additions and 2 deletions
|
@ -228,7 +228,7 @@ void EbyteLoraComponent::update() {
|
||||||
this->send_switch_info_();
|
this->send_switch_info_();
|
||||||
}
|
}
|
||||||
void EbyteLoraComponent::set_config_() {
|
void EbyteLoraComponent::set_config_() {
|
||||||
uint8_t data[8];
|
uint8_t data[9];
|
||||||
// set register
|
// set register
|
||||||
data[0] = 0xC0;
|
data[0] = 0xC0;
|
||||||
data[1] = 0;
|
data[1] = 0;
|
||||||
|
@ -251,7 +251,7 @@ void EbyteLoraComponent::set_config_() {
|
||||||
// this-> set_mode_(CONFIGURATION)
|
// this-> set_mode_(CONFIGURATION)
|
||||||
// this->write_array(data, sizeof(data));
|
// this->write_array(data, sizeof(data));
|
||||||
// this->setup_wait_response_(5000);
|
// this->setup_wait_response_(5000);
|
||||||
for (int i = 0; i <= sizeof(data); i++) {
|
for (int i = 0; i < sizeof(data); i++) {
|
||||||
ESP_LOGD(TAG, "values: %c%c%c%c%c%c%c%c", BYTE_TO_BINARY(data[i]));
|
ESP_LOGD(TAG, "values: %c%c%c%c%c%c%c%c", BYTE_TO_BINARY(data[i]));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue