16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-22 09:19:18 +02:00

revert to frequent log flushing, fix for fiz parsing on linux, unify brake_speed interpretation as full rotations per second

This commit is contained in:
milek7
2018-08-11 20:13:45 +02:00
parent f479f2cabe
commit 0453e10534
5 changed files with 8 additions and 13 deletions

View File

@@ -7286,6 +7286,11 @@ bool TMoverParameters::LoadFIZ(std::string chkpath)
// guard against malformed config files with leading spaces
inputline.erase( 0, inputline.find_first_not_of( ' ' ) );
}
// trim CR at end (mainly for linux)
if (!inputline.empty() && inputline.back() == '\r')
inputline.pop_back();
if( inputline.length() == 0 ) {
startBPT = false;
continue;