mirror of
https://github.com/esphome/esphome.git
synced 2026-02-18 15:35:59 -07:00
[libretiny] Regenerate boards, enable Cortex-M4 atomics, and consolidate platform code
This commit is contained in:
@@ -1,13 +1,2 @@
|
|||||||
logger:
|
logger:
|
||||||
level: VERBOSE
|
level: VERBOSE
|
||||||
|
|
||||||
esphome:
|
|
||||||
on_boot:
|
|
||||||
- lambda: |-
|
|
||||||
int x = 100;
|
|
||||||
x = clamp(x, 50, 90);
|
|
||||||
assert(x == 90);
|
|
||||||
x = clamp_at_least(x, 95);
|
|
||||||
assert(x == 95);
|
|
||||||
x = clamp_at_most(x, 40);
|
|
||||||
assert(x == 40);
|
|
||||||
|
|||||||
@@ -1,13 +1,2 @@
|
|||||||
logger:
|
logger:
|
||||||
level: VERBOSE
|
level: VERBOSE
|
||||||
|
|
||||||
esphome:
|
|
||||||
on_boot:
|
|
||||||
- lambda: |-
|
|
||||||
int x = 100;
|
|
||||||
x = clamp(x, 50, 90);
|
|
||||||
assert(x == 90);
|
|
||||||
x = clamp_at_least(x, 95);
|
|
||||||
assert(x == 95);
|
|
||||||
x = clamp_at_most(x, 40);
|
|
||||||
assert(x == 40);
|
|
||||||
|
|||||||
Reference in New Issue
Block a user