mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-28 16:01:10 +02:00
gui/scan_setup:fix override gotoXXLongitude & gotoXXLatitude with uninitialized zapit_lat or zapit_long
Origin commit data
------------------
Branch: ni/coolstream
Commit: 5e60b64469
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2013-09-01 (Sun, 01 Sep 2013)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -1389,8 +1389,10 @@ void CScanSetup::saveScanSetup()
|
||||
dprintf(DEBUG_NORMAL, "error while saving scan-settings!\n");
|
||||
|
||||
//CServiceManager::getInstance()->SaveMotorPositions();
|
||||
zapitCfg.gotoXXLatitude = strtod(zapit_lat, NULL);
|
||||
zapitCfg.gotoXXLongitude = strtod(zapit_long, NULL);
|
||||
if(zapit_lat[0] != '#')//check if var ok
|
||||
zapitCfg.gotoXXLatitude = strtod(zapit_lat, NULL);
|
||||
if(zapit_long[0] != '#')//check if var ok
|
||||
zapitCfg.gotoXXLongitude = strtod(zapit_long, NULL);
|
||||
|
||||
CZapit::getInstance()->SetConfig(&zapitCfg);
|
||||
CFEManager::getInstance()->saveSettings(true);
|
||||
|
@@ -128,8 +128,8 @@ bool has_hdd;
|
||||
CInfoClock *InfoClock;
|
||||
int allow_flash = 1;
|
||||
Zapit_config zapitCfg;
|
||||
char zapit_lat[20];
|
||||
char zapit_long[20];
|
||||
char zapit_lat[20]="#";
|
||||
char zapit_long[20]="#";
|
||||
bool autoshift = false;
|
||||
uint32_t scrambled_timer;
|
||||
t_channel_id standby_channel_id;
|
||||
|
Reference in New Issue
Block a user