mirror of
https://github.com/thooge/esp32-nmea2000-obp60.git
synced 2025-12-13 05:53:06 +01:00
avoid string copy in api
This commit is contained in:
@@ -16,7 +16,7 @@ class GwApi{
|
||||
double value=0;
|
||||
bool valid=false;
|
||||
BoatValue(){}
|
||||
BoatValue(String n):name(n){
|
||||
BoatValue(const String &n):name(n){
|
||||
}
|
||||
void setFormat(const String &format){
|
||||
if (formatSet) return;
|
||||
|
||||
Reference in New Issue
Block a user