You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
otherwise get compiler warnings when using this interface:
src/modules/Telemetry/Sensor/DFRobotLarkSensor.cpp: In member function 'virtual bool DFRobotLarkSensor::getMetrics(meshtastic_Telemetry*)':
src/modules/Telemetry/Sensor/DFRobotLarkSensor.cpp:38:80: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
measurement->variant.environment_metrics.temperature = lark.getValue("Temp").toFloat();
^
src/modules/Telemetry/Sensor/DFRobotLarkSensor.cpp:39:86: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
measurement->variant.environment_metrics.relative_humidity = lark.getValue("Humi").toFloat();
^
src/modules/Telemetry/Sensor/DFRobotLarkSensor.cpp:40:80: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
measurement->variant.environment_metrics.wind_speed = lark.getValue("Speed").toFloat();
^
src/modules/Telemetry/Sensor/DFRobotLarkSensor.cpp:41:109: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
measurement->variant.environment_metrics.wind_direction = GeoCoord::bearingToDegrees(lark.getValue("Dir").c_str());
^
src/modules/Telemetry/Sensor/DFRobotLarkSensor.cpp:42:92: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
measurement->variant.environment_metrics.barometric_pressure = lark.getValue("Pressure").toFloat();
The text was updated successfully, but these errors were encountered:
The two methods
must be declared const char*:
otherwise get compiler warnings when using this interface:
The text was updated successfully, but these errors were encountered: