mirror of
https://github.com/arendst/Tasmota.git
synced 2025-08-01 23:17:43 +00:00
Update support.ino
Add optional debug info
This commit is contained in:
parent
d6d56618dc
commit
292efcc358
@ -696,7 +696,18 @@ double TaylorLog(double x)
|
|||||||
totalValue = totalValue + y;
|
totalValue = totalValue + y;
|
||||||
powe = powe + 2;
|
powe = powe + 2;
|
||||||
}
|
}
|
||||||
return 2 * totalValue;
|
totalValue *= 2;
|
||||||
|
/*
|
||||||
|
char logxs[33];
|
||||||
|
dtostrfd(x, 8, logxs);
|
||||||
|
double log1 = log(x);
|
||||||
|
char log1s[33];
|
||||||
|
dtostrfd(log1, 8, log1s);
|
||||||
|
char log2s[33];
|
||||||
|
dtostrfd(totalValue, 8, log2s);
|
||||||
|
AddLog_P2(LOG_LEVEL_DEBUG, PSTR("input %s, log %s, taylor %s"), logxs, log1s, log2s);
|
||||||
|
*/
|
||||||
|
return totalValue;
|
||||||
}
|
}
|
||||||
|
|
||||||
uint32_t SqrtInt(uint32_t num)
|
uint32_t SqrtInt(uint32_t num)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user