Add #undef BIT_WIDTH after use

Co-authored-by: netmindz <442066+netmindz@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2025-11-27 18:23:31 +00:00
parent fea140e068
commit 3738bf79f5
3 changed files with 4 additions and 2 deletions

View File

@@ -0,0 +1 @@
.

4
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{
"name": "wled",
"version": "0.15.1",
"version": "0.15.2-beta2",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "wled",
"version": "0.15.1",
"version": "0.15.2-beta2",
"license": "ISC",
"dependencies": {
"clean-css": "^5.3.3",

View File

@@ -795,6 +795,7 @@ String generateDeviceFingerprint() {
#define BIT_WIDTH ADC_WIDTH_BIT_12
#endif
esp_adc_cal_characterize(ADC_UNIT_1, ADC_ATTEN_DB_11, BIT_WIDTH, 1100, &ch);
#undef BIT_WIDTH
fp[0] ^= ch.coeff_a;
fp[1] ^= ch.coeff_b;
if (ch.low_curve) {