Skip to content

Commit

Permalink
#26 use core defines for vport
Browse files Browse the repository at this point in the history
  • Loading branch information
dentra committed Mar 26, 2024
1 parent 7d9f0fc commit a58b544
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/tion/tion_component.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ void TionApiComponent::call_setup() {

void TionApiComponent::dump_config() {
ESP_LOGCONFIG(TAG, "%s:", this->get_component_source());
ESP_LOGCONFIG(TAG, " Update interval: %.1f s", this->get_update_interval() * 0.001f);
LOG_UPDATE_INTERVAL(this);
ESP_LOGCONFIG(TAG, " Force update: %s", ONOFF(this->force_update_));
ESP_LOGCONFIG(TAG, " State timeout: %.1f s", this->state_timeout_ * 0.001f);
ESP_LOGCONFIG(TAG, " Batch timeout: %.1f s", this->batch_timeout_ * 0.001f);
Expand Down
1 change: 1 addition & 0 deletions components/tion/tion_vport_ble.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#pragma once
#include "esphome/core/defines.h"
#ifdef USE_VPORT_BLE

#include "esphome/components/vport/vport_ble.h"
Expand Down
2 changes: 1 addition & 1 deletion components/tion/tion_vport_uart.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once
#ifdef USE_VPORT_UART
#include "esphome/core/defines.h"
#ifdef USE_VPORT_UART

#ifdef USE_TION_HALF_DUPLEX
// #pragma message("USE_TION_HALF_DUPLEX")
Expand Down

0 comments on commit a58b544

Please sign in to comment.