mirror of https://github.com/arendst/Tasmota.git
bugfix
This commit is contained in:
parent
fe8229ea30
commit
3446b0b78c
|
@ -33,14 +33,14 @@ typedef struct gamma_table_t {
|
||||||
|
|
||||||
const gamma_table_t ac_dimmer_table[] = { // don't put in PROGMEM for performance reasons
|
const gamma_table_t ac_dimmer_table[] = { // don't put in PROGMEM for performance reasons
|
||||||
{ 0, 0 },
|
{ 0, 0 },
|
||||||
{ 1, 64 },
|
{ 10, 64 },
|
||||||
{ 5, 144 },
|
{ 50, 144 },
|
||||||
{ 10, 205 },
|
{ 100, 205 },
|
||||||
{ 50, 500 },
|
{ 500, 500 },
|
||||||
{ 90, 795 },
|
{ 900, 795 },
|
||||||
{ 95, 866 },
|
{ 950, 866 },
|
||||||
{ 99, 936 },
|
{ 990, 936 },
|
||||||
{ 100, 1000 },
|
{ 1024, 1024 },
|
||||||
{ 0xFFFF, 0xFFFF } // fail-safe if out of range
|
{ 0xFFFF, 0xFFFF } // fail-safe if out of range
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -333,7 +333,7 @@ uint16_t ledGammaReverse_internal(uint16_t vg, const struct gamma_table_t *gt_pt
|
||||||
|
|
||||||
// 10 bits power select to 10 bits timing based on sinus curve
|
// 10 bits power select to 10 bits timing based on sinus curve
|
||||||
uint16_t ac_zero_cross_power(uint16_t v) {
|
uint16_t ac_zero_cross_power(uint16_t v) {
|
||||||
return ledGamma_internal(v, ac_dimmer_table)/10;
|
return ledGamma_internal(v, ac_dimmer_table);
|
||||||
}
|
}
|
||||||
|
|
||||||
// 10 bits in, 10 bits out
|
// 10 bits in, 10 bits out
|
||||||
|
|
Loading…
Reference in New Issue