mirror of
https://github.com/thooge/esp32-nmea2000-obp60.git
synced 2026-03-28 18:06:37 +01:00
Calibration feature switchable as compiler option,
new page code example by page windrose
This commit is contained in:
@@ -346,11 +346,14 @@ void setBuzzerPower(uint power){
|
||||
buzzerpower = power;
|
||||
}
|
||||
|
||||
// Delete xdr prefix from string
|
||||
String xdrDelete(String input){
|
||||
if(input.substring(0,3) == "xdr"){
|
||||
// Delete xdr prefix from string and optional limit length
|
||||
String xdrDelete(String input, uint8_t maxlen) {
|
||||
if (input.substring(0, 3) == "xdr") {
|
||||
input = input.substring(3, input.length());
|
||||
}
|
||||
if (maxlen > 0) {
|
||||
return input.substring(0, maxlen);
|
||||
}
|
||||
return input;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user