mirror of
https://github.com/thooge/esp32-nmea2000-obp60.git
synced 2026-11-17 21:11:27 +01:00
avoid string copy in api
This commit is contained in:
1 parent
7b4ab178c2
commit
4f2c9ed1c2
1 file changed
+1
-1
+1
-1
@@ -16,7 +16,7 @@ class GwApi{
|
|||||||
double value=0;
|
double value=0;
|
||||||
bool valid=false;
|
bool valid=false;
|
||||||
BoatValue(){}
|
BoatValue(){}
|
||||||
BoatValue(String n):name(n){
|
BoatValue(const String &n):name(n){
|
||||||
}
|
}
|
||||||
void setFormat(const String &format){
|
void setFormat(const String &format){
|
||||||
if (formatSet) return;
|
if (formatSet) return;
|
||||||
|
|||||||
Reference in new issue
Block a user