diff --git a/src/io/pibinarylog.cpp b/src/io/pibinarylog.cpp index 17fc5fc5..04c37ba3 100644 --- a/src/io/pibinarylog.cpp +++ b/src/io/pibinarylog.cpp @@ -148,12 +148,14 @@ bool PIBinaryLog::threadedRead(uchar *readed, int size) { if (delay > 0) { cdelay = delay * play_speed; dtc = int(cdelay) /100; - if (play_speed <= 0.) dtc = 1; + if (play_speed <= 0.) dtc = 2; + //piCout << play_speed << dtc; for (int j=0; j 0 ? 1. / ps : 0; + play_speed = ps > 0. ? 1. / ps : 0.; play_delay = property("playDelay").toSystemTime(); split_mode = (SplitMode)property("splitMode").toInt(); split_time = property("splitTime").toSystemTime(); diff --git a/src/io/pibinarylog.h b/src/io/pibinarylog.h index 243a8c61..3eced154 100644 --- a/src/io/pibinarylog.h +++ b/src/io/pibinarylog.h @@ -103,7 +103,7 @@ public: int defaultID() const {return default_id;} //! Returns current play speed - double playSpeed() const {return play_speed > 0 ? 1. / play_speed : 0;} + double playSpeed() const {return play_speed > 0 ? 1. / play_speed : 0.;} //! Returns current play delay PISystemTime playDelay() const {return play_delay;}