mirror of https://github.com/arendst/Tasmota.git
Merge pull request #14376 from s-hadinger/berry_fix_rev0_bug
Berry workaround for ESP32 Rev0 bug
This commit is contained in:
commit
6735c0c3fd
|
@ -596,8 +596,11 @@ newframe: /* a new call frame */
|
|||
if (var_isint(a) && var_isint(b)) {
|
||||
var_setint(dst, ibinop(+, a, b));
|
||||
} else if (var_isnumber(a) && var_isnumber(b)) {
|
||||
breal x = var2real(a), y = var2real(b);
|
||||
var_setreal(dst, x + y);
|
||||
union bvaldata x, y; // TASMOTA workaround for ESP32 rev0 bug
|
||||
x.i = a->v.i;
|
||||
y.i = b->v.i;
|
||||
// breal x = var2real(a), y = var2real(b);
|
||||
var_setreal(dst, x.r + y.r);
|
||||
} else if (var_isstr(a) && var_isstr(b)) { /* strcat */
|
||||
bstring *s = be_strcat(vm, var_tostr(a), var_tostr(b));
|
||||
reg = vm->reg;
|
||||
|
|
Loading…
Reference in New Issue