comment not needed SaveMotorPositions code and calls

This commit is contained in:
[CST] Focus
2012-06-13 12:14:29 +04:00
parent 9602e487f9
commit c0e03b1d53
3 changed files with 4 additions and 2 deletions

View File

@@ -910,7 +910,7 @@ void CScanSetup::saveScanSetup()
if(!scansettings.saveSettings(NEUTRINO_SCAN_SETTINGS_FILE)) if(!scansettings.saveSettings(NEUTRINO_SCAN_SETTINGS_FILE))
dprintf(DEBUG_NORMAL, "error while saving scan-settings!\n"); dprintf(DEBUG_NORMAL, "error while saving scan-settings!\n");
CServiceManager::getInstance()->SaveMotorPositions(); //CServiceManager::getInstance()->SaveMotorPositions();
zapitCfg.gotoXXLatitude = strtod(zapit_lat, NULL); zapitCfg.gotoXXLatitude = strtod(zapit_lat, NULL);
zapitCfg.gotoXXLongitude = strtod(zapit_long, NULL); zapitCfg.gotoXXLongitude = strtod(zapit_long, NULL);

View File

@@ -542,6 +542,7 @@ int CServiceManager::LoadMotorPositions(void)
void CServiceManager::SaveMotorPositions() void CServiceManager::SaveMotorPositions()
{ {
#if 0
FILE * fd; FILE * fd;
sat_iterator_t sit; sat_iterator_t sit;
printf("[getservices] saving motor positions...\n"); printf("[getservices] saving motor positions...\n");
@@ -559,6 +560,7 @@ void CServiceManager::SaveMotorPositions()
} }
fdatasync(fileno(fd)); fdatasync(fileno(fd));
fclose(fd); fclose(fd);
#endif
} }
bool CServiceManager::InitSatPosition(t_satellite_position position, char * name, bool force) bool CServiceManager::InitSatPosition(t_satellite_position position, char * name, bool force)

View File

@@ -2134,7 +2134,7 @@ void CZapit::run()
StopPlayBack(true); StopPlayBack(true);
CFEManager::getInstance()->saveSettings(true); CFEManager::getInstance()->saveSettings(true);
CServiceManager::getInstance()->SaveMotorPositions(); //CServiceManager::getInstance()->SaveMotorPositions();
SdtMonitor.Stop(); SdtMonitor.Stop();
INFO("shutdown started"); INFO("shutdown started");