mirror of
https://github.com/esphome/esphome.git
synced 2024-11-24 07:58:09 +01:00
pr fix, compiler try5
This commit is contained in:
parent
29160e1150
commit
fa81a14ad2
1 changed files with 1 additions and 1 deletions
|
@ -28,7 +28,7 @@
|
|||
#include <Arduino.h>
|
||||
#else // USE_ESP_IDF
|
||||
#include <driver/gpio.h>
|
||||
int32_t map(long x, long in_min, long in_max, long out_min, long out_max) {
|
||||
int32_t map(int32_t x, int32_t in_min, int32_t in_max, int32_t out_min, int32_t out_max) {
|
||||
return (x - in_min) * (out_max - out_min) / (in_max - in_min) + out_min;
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue