[Ovmsdev] Macros MIN and MAX

Michael Balzer dexter at expeedo.de
Fri Jan 5 05:20:22 HKT 2018


Stephen,

sys/param.h was not included previously. As the definitions match, I can use those. Or add an #ifndef / #undef.

As you're compiling with v3 already: are the SD card issues solved with that release?

Regards,
Michael


Am 04.01.2018 um 22:01 schrieb Stephen Casner:
> Michael and Geir,
>
> Can you please see whether the definitions of MIN and MAX in your
> files are needed?  These macros are defined in:
>
> esp-idf/components/newlib/include/sys/param.h
>
> which gets included from ovms_config.h and perhaps other places.
>
> When I'm compiling with release v3.0 the redefinition of these macros
> shows up as a warning.  It would be possible to ignore the warning and
> it might also be possible to turn off the warnings by changing the
> configuration, but if the definitions are not needed this would be
> cleaner.
>
>                                                         -- Steve
> _______________________________________________
> OvmsDev mailing list
> OvmsDev at lists.teslaclub.hk
> http://lists.teslaclub.hk/mailman/listinfo/ovmsdev

-- 
Michael Balzer * Helkenberger Weg 9 * D-58256 Ennepetal
Fon 02333 / 833 5735 * Handy 0176 / 206 989 26





More information about the OvmsDev mailing list