1
0
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:
2025-08-29 19:21:29 +02:00
parent 9a04029cb4
commit 601d56ee49
14 changed files with 191 additions and 113 deletions

View File

@@ -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;
}