mirror of
https://github.com/esphome/esphome.git
synced 2026-09-18 10:38:38 +00:00
[tsl2561] Move set_is_cs_package into the header (#19289)
This commit is contained in:
@@ -146,7 +146,6 @@ void TSL2561Sensor::set_integration_time(TSL2561IntegrationTime integration_time
|
||||
this->integration_time_ = integration_time;
|
||||
}
|
||||
void TSL2561Sensor::set_gain(TSL2561Gain gain) { this->gain_ = gain; }
|
||||
void TSL2561Sensor::set_is_cs_package(bool package_cs) { this->package_cs_ = package_cs; }
|
||||
|
||||
bool TSL2561Sensor::tsl2561_write_byte(uint8_t a_register, uint8_t value) {
|
||||
return this->write_byte(a_register | TSL2561_COMMAND_BIT, value);
|
||||
|
||||
@@ -59,7 +59,7 @@ class TSL2561Sensor final : public sensor::Sensor, public PollingComponent, publ
|
||||
*
|
||||
* @param package_cs Is this a CS package.
|
||||
*/
|
||||
void set_is_cs_package(bool package_cs);
|
||||
void set_is_cs_package(bool package_cs) { this->package_cs_ = package_cs; }
|
||||
|
||||
// ========== INTERNAL METHODS ==========
|
||||
// (In most use cases you won't need these)
|
||||
|
||||
Reference in New Issue
Block a user