mirror of
https://github.com/esphome/esphome.git
synced 2026-10-06 10:56:43 +00:00
[weikai] Mark configurable classes as final
This commit is contained in:
@@ -266,7 +266,7 @@ class WeikaiComponent : public Component {
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
/// @brief Helper class to expose a WeiKai family IO pin as an internal GPIO pin.
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
class WeikaiGPIOPin : public GPIOPin {
|
||||
class WeikaiGPIOPin final : public GPIOPin {
|
||||
public:
|
||||
void set_parent(WeikaiComponent *parent) { this->parent_ = parent; }
|
||||
void set_pin(uint8_t pin) { this->pin_ = pin; }
|
||||
@@ -293,7 +293,7 @@ class WeikaiGPIOPin : public GPIOPin {
|
||||
/// uart::UARTComponent virtual class. This class is common to the different members of the Weikai
|
||||
/// components family and therefore avoid code duplication.
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
class WeikaiChannel : public uart::UARTComponent {
|
||||
class WeikaiChannel final : public uart::UARTComponent {
|
||||
public:
|
||||
/// @brief We belongs to this WeikaiComponent
|
||||
/// @param parent pointer to the component we belongs to
|
||||
@@ -315,10 +315,10 @@ class WeikaiChannel : public uart::UARTComponent {
|
||||
const char *get_channel_name() { return this->name_.c_str(); }
|
||||
|
||||
/// @brief Setup the channel
|
||||
void virtual setup_channel();
|
||||
void setup_channel();
|
||||
|
||||
/// @brief dump channel information
|
||||
void virtual dump_channel();
|
||||
void dump_channel();
|
||||
|
||||
/// @brief Factory method to create a WeikaiRegister proxy object
|
||||
/// @param reg address of the register
|
||||
@@ -414,7 +414,7 @@ class WeikaiChannel : public uart::UARTComponent {
|
||||
|
||||
/// @brief check if channel is alive
|
||||
/// @return true if OK
|
||||
bool virtual check_channel_down();
|
||||
bool check_channel_down();
|
||||
|
||||
#ifdef TEST_COMPONENT
|
||||
/// @ingroup test_
|
||||
|
||||
Reference in New Issue
Block a user