Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
AzonInc committed Sep 23, 2024
1 parent beb21d7 commit a8f0dea
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion components/tc_bus/protocol.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ namespace esphome
{
namespace tc_bus
{
uint32_t buildCommand(CommandType type, uint8_t address = 0, uint32_t payload = 0, uint32_t serial_number = 0)
uint32_t buildCommand(CommandType type, uint8_t address, uint32_t payload, uint32_t serial_number)
{
uint32_t command = 0;

Expand Down
2 changes: 1 addition & 1 deletion components/tc_bus/protocol.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ namespace esphome
uint8_t length;
};

uint32_t buildCommand(CommandType type, uint8_t address, uint32_t payload, uint32_t serial_number);
uint32_t buildCommand(CommandType type, uint8_t address = 0, uint32_t payload = 0, uint32_t serial_number = 0);
CommandData parseCommand(uint32_t command);

const char* command_type_to_string(CommandType type);
Expand Down
2 changes: 1 addition & 1 deletion components/tc_bus/tc_bus.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,7 @@ namespace esphome
}
}

void TCBusComponent::send_command(CommandType type, uint8_t address = 0, uint32_t payload = 0, uint32_t serial_number = 0)
void TCBusComponent::send_command(CommandType type, uint8_t address, uint32_t payload, uint32_t serial_number)
{
ESP_LOGV(TAG, "Generating command: Type: %s, Address: %i, Payload: %X, Serial number: %i", command_type_to_string(type), address, payload, serial_number);

Expand Down
2 changes: 1 addition & 1 deletion components/tc_bus/tc_bus.h
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ namespace esphome
void set_door_readiness_sensor(binary_sensor::BinarySensor *door_readiness) { this->door_readiness_ = door_readiness; }

void send_command(uint32_t command);
void send_command(CommandType type, uint8_t address, uint32_t payload, uint32_t serial_number);
void send_command(CommandType type, uint8_t address = 0, uint32_t payload = 0, uint32_t serial_number = 0);
void set_programming_mode(bool enabled);
void read_memory(uint32_t serial_number);
void request_memory_blocks(uint8_t start_address);
Expand Down

0 comments on commit a8f0dea

Please sign in to comment.