Update gp8211_output.cpp

This commit is contained in:
haudamekki 2024-10-31 08:37:56 +01:00 committed by GitHub
parent 6e8eaf0404
commit 6ede5c75cd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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) {
uint16_t value = static_cast<uint16_t>(state * 32767);
ESP_LOGV(TAG, "Calculated DAC value: %u", value);