mirror of
https://github.com/esphome/esphome.git
synced 2025-10-24 12:43:51 +01:00
Optimize Component and Application state storage from uint32_t to uint8_t (#9082)
This commit is contained in:
@@ -102,7 +102,7 @@ WeikaiRegister &WeikaiRegister::operator|=(uint8_t value) {
|
||||
// The WeikaiComponent methods
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
void WeikaiComponent::loop() {
|
||||
if ((this->component_state_ & COMPONENT_STATE_MASK) != COMPONENT_STATE_LOOP)
|
||||
if (!this->is_in_loop_state())
|
||||
return;
|
||||
|
||||
// If there are some bytes in the receive FIFO we transfers them to the ring buffers
|
||||
|
||||
Reference in New Issue
Block a user