[Pkg-running-devel] [antpm] 34/41: ds: bugfix: do not always write 3 as delay

Kristof Ralovich ralovich-guest at moszumanska.debian.org
Tue Feb 23 21:46:46 UTC 2016


This is an automated email from the git hooks/post-receive script.

ralovich-guest pushed a commit to branch upstream
in repository antpm.

commit 2244de7c4174a4847f4200f62930e12bfc273284
Author: RALOVICH, Kristof <tade60 at freemail.hu>
Date:   Sun Nov 8 21:13:17 2015 +0100

    ds: bugfix: do not always write 3 as delay
---
 src/DeviceSettings.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/DeviceSettings.cpp b/src/DeviceSettings.cpp
index b88cde5..eb69152 100644
--- a/src/DeviceSettings.cpp
+++ b/src/DeviceSettings.cpp
@@ -122,7 +122,7 @@ DeviceSettings::saveToFile(const char *fname)
   pt.put("antpm.MaxFileDownloads", MaxFileDownloads);
   pt.put("antpm.LastUserProfileTime", time2str(LastUserProfileTime));
   pt.put("antpm.LastTransferredTime", time2str(LastTransferredTime));
-  pt.put("antpm.SerialWriteDelayMs", 3);
+  pt.put("antpm.SerialWriteDelayMs", SerialWriteDelayMs);
   try
   {
     boost::property_tree::ini_parser::write_ini(fname, pt);
@@ -151,7 +151,7 @@ bool DeviceSettings::loadFromFile(const char *fname)
   LOG_VAR(pt.get<unsigned int>("antpm.MaxFileDownloads"));
   LOG_VAR(pt.get<std::string>("antpm.LastUserProfileTime"));
   LOG_VAR(pt.get<std::string>("antpm.LastTransferredTime"));
-  LOG_VAR(pt.get<std::string>("antpm.SerialWriteDelayMs"));
+  LOG_VAR(pt.get<size_t>("antpm.SerialWriteDelayMs"));
   MaxFileDownloads    = pt.get<unsigned int>("antpm.MaxFileDownloads");
   LastUserProfileTime = str2time(pt.get<std::string>("antpm.LastUserProfileTime").c_str());
   LastTransferredTime = str2time(pt.get<std::string>("antpm.LastTransferredTime").c_str());

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-running/antpm.git



More information about the Pkg-running-devel mailing list