[tsl2561] Move set_is_cs_package into the header (#19289)

This commit is contained in:
J. Nick Koston
2026-09-16 17:16:10 +12:00
committed by GitHub
parent 456119ec38
commit 7e3a1cf272
2 changed files with 1 additions and 2 deletions
-1
View File
@@ -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);
+1 -1
View File
@@ -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)