Replies: 5 comments 1 reply
-
|
Hello, I think this is more an environment issue:. See: https://github.com/mathieucarbou/MycilaJSY?tab=readme-ov-file#usage |
Beta Was this translation helpful? Give feedback.
-
|
After some thoughts, let me try to update the code first. It is possible that I have in my test examples some headers included where max is defined, that you don't have... |
Beta Was this translation helpful? Give feedback.
-
|
I was able to compile and run my application until I installed the latest version 13.0.1. Since then even older version no longer compile correctly even after reverting to version 13.0.0. |
Beta Was this translation helpful? Give feedback.
-
|
So this si normal that each major digit upgrade brings some breaking change (release notes: https://github.com/mathieucarbou/MycilaJSY/releases). But in the case of max, I think I should have used std::max instead to force use the STL one. I have releases just now version I suspect |
Beta Was this translation helpful? Give feedback.
-
|
Seems this solves the problem. Thanks |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Firmware
Version 13.0.1
Description
Using sensor JSY_MK_194G
..\libraries\MycilaJSY\src\MycilaJSY.cpp:919:34: error: 'max' was not declared in this scope
919 | parsed.aggregate.voltage = max(parsed._metrics[0].voltage, parsed._metrics[1].voltage);
Board
esp32s3,
Ethernet adapter used ?
WIFI
Stack trace
none
Additional notes
Works fine with previous version
Screenshots
If applicable, add screenshots to help explain your problem.
Beta Was this translation helpful? Give feedback.
All reactions