From dd43e773ecac12b665e2af5df70212353c31d89a Mon Sep 17 00:00:00 2001 From: "[CST] Focus" Date: Wed, 13 Jun 2012 12:14:29 +0400 Subject: [PATCH] comment not needed SaveMotorPositions code and calls Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/c0e03b1d536f9bc1507a1453e3b3348fef21d240 Author: [CST] Focus Date: 2012-06-13 (Wed, 13 Jun 2012) ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/gui/scan_setup.cpp | 2 +- src/zapit/src/getservices.cpp | 2 ++ src/zapit/src/zapit.cpp | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/gui/scan_setup.cpp b/src/gui/scan_setup.cpp index 7b7df4e27..a86264eca 100644 --- a/src/gui/scan_setup.cpp +++ b/src/gui/scan_setup.cpp @@ -910,7 +910,7 @@ void CScanSetup::saveScanSetup() if(!scansettings.saveSettings(NEUTRINO_SCAN_SETTINGS_FILE)) dprintf(DEBUG_NORMAL, "error while saving scan-settings!\n"); - CServiceManager::getInstance()->SaveMotorPositions(); + //CServiceManager::getInstance()->SaveMotorPositions(); zapitCfg.gotoXXLatitude = strtod(zapit_lat, NULL); zapitCfg.gotoXXLongitude = strtod(zapit_long, NULL); diff --git a/src/zapit/src/getservices.cpp b/src/zapit/src/getservices.cpp index d1175ad9d..7b0bf62e1 100644 --- a/src/zapit/src/getservices.cpp +++ b/src/zapit/src/getservices.cpp @@ -542,6 +542,7 @@ int CServiceManager::LoadMotorPositions(void) void CServiceManager::SaveMotorPositions() { +#if 0 FILE * fd; sat_iterator_t sit; printf("[getservices] saving motor positions...\n"); @@ -559,6 +560,7 @@ void CServiceManager::SaveMotorPositions() } fdatasync(fileno(fd)); fclose(fd); +#endif } bool CServiceManager::InitSatPosition(t_satellite_position position, char * name, bool force) diff --git a/src/zapit/src/zapit.cpp b/src/zapit/src/zapit.cpp index cf8c6510c..08eb22084 100644 --- a/src/zapit/src/zapit.cpp +++ b/src/zapit/src/zapit.cpp @@ -2134,7 +2134,7 @@ void CZapit::run() StopPlayBack(true); CFEManager::getInstance()->saveSettings(true); - CServiceManager::getInstance()->SaveMotorPositions(); + //CServiceManager::getInstance()->SaveMotorPositions(); SdtMonitor.Stop(); INFO("shutdown started");