mirror of
https://github.com/esphome/esphome.git
synced 2025-03-14 04:25:15 +01:00
Update esphome/components/gp8211/output/gp8211_output.cpp
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
This commit is contained in:
parent
18f5837cee
commit
f96c4e6875
1 changed files with 0 additions and 1 deletions
|
@ -11,7 +11,6 @@ static const uint8_t OUTPUT_REGISTER = 0x02;
|
|||
void GP8211Output::dump_config() { ESP_LOGCONFIG(TAG, "GP8211 Output:"); }
|
||||
|
||||
void GP8211Output::write_state(float state) {
|
||||
ESP_LOGD(TAG, "Original brightness state received from Light component: %.5f", state);
|
||||
|
||||
uint16_t value = static_cast<uint16_t>(state * 32767);
|
||||
ESP_LOGD(TAG, "Calculated DAC value: %u", value);
|
||||
|
|
Loading…
Add table
Reference in a new issue