# HG changeset patch # User Ideenmodellierer # Date 1606766123 -3600 # Node ID 701ead8dddaba95e50451c90e3038f449edfc792 # Parent 3508e6dc4f22141147a4cb698c9e3a6364a6ff41 Try to reduce legth of log entry string: The metric views of the log data did no longer fit into the line space (because of the change ' to "min"). This may be avoided / reduced by removing spaces depending on the view parameters diff -r 3508e6dc4f22 -r 701ead8dddab Discovery/Src/tInfoLog.c --- a/Discovery/Src/tInfoLog.c Mon Nov 30 20:52:49 2020 +0100 +++ b/Discovery/Src/tInfoLog.c Mon Nov 30 20:55:23 2020 +0100 @@ -368,7 +368,21 @@ switch(logbookHeader.decoModel) { case 1: - textPointer += snprintf(&text[textPointer],20,"\016\016 GF \017"); + if(!settingsGetPointer()->nonMetricalSystem) /* safe space to avoid cursor overlap */ + { + if(settingsGetPointer()->amPMTime) + { + textPointer += snprintf(&text[textPointer],20,"\016\016 GF \017"); + } + else + { + textPointer += snprintf(&text[textPointer],20,"\016\016GF \017"); + } + } + else + { + textPointer += snprintf(&text[textPointer],20,"\016\016 GF \017"); + } break; case 2: textPointer += snprintf(&text[textPointer],20,"\016\016 VPM \017"); @@ -386,7 +400,7 @@ } else { - textPointer += snprintf(&text[textPointer], 20,"%3d.%d\016\016m\017 ", maxDepthMeter,maxDepthSubmeter); + textPointer += snprintf(&text[textPointer], 20,"%3d.%d\016\016m \017", maxDepthMeter,maxDepthSubmeter); } textPointer += snprintf(&text[textPointer], 20,"%3d\016\016min\017\n\r", divetime);