mirror of
https://github.com/DaKerboul/perun.git
synced 2026-08-09 17:05:39 +02:00
Minor fixes
This commit is contained in:
@@ -640,7 +640,7 @@ end
|
|||||||
Perun.UpdateMission = function()
|
Perun.UpdateMission = function()
|
||||||
-- Main function for mission information updates
|
-- Main function for mission information updates
|
||||||
Perun.AddLog("Updating mission data",2)
|
Perun.AddLog("Updating mission data",2)
|
||||||
-- Perun.MissionData=DCS.getCurrentMission()
|
Perun.MissionData=DCS.getCurrentMission()
|
||||||
-- Perun.SendToPerun(4,Perun.MissionData) -- TBD can cause data transmission troubles
|
-- Perun.SendToPerun(4,Perun.MissionData) -- TBD can cause data transmission troubles
|
||||||
Perun.AddLog("Mission data updated",2)
|
Perun.AddLog("Mission data updated",2)
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -557,8 +557,11 @@ namespace Perun_v1
|
|||||||
{
|
{
|
||||||
ExtSRSJson = "{'type':'100','instance':'" + Int32.Parse(con_txt_dcs_instance.Text) + "','payload':{'ignore':'true'}}";
|
ExtSRSJson = "{'type':'100','instance':'" + Int32.Parse(con_txt_dcs_instance.Text) + "','payload':{'ignore':'true'}}";
|
||||||
}
|
}
|
||||||
|
if (ExtSRSStatus)
|
||||||
|
{
|
||||||
DatabaseConnection.SendToMySql(ExtSRSJson);
|
DatabaseConnection.SendToMySql(ExtSRSJson);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Handle LotATC
|
// Handle LotATC
|
||||||
if (Globals.StatusConnection)
|
if (Globals.StatusConnection)
|
||||||
@@ -588,8 +591,11 @@ namespace Perun_v1
|
|||||||
{
|
{
|
||||||
ExtLotATCJson = "{'type':'101','instance':'" + Int32.Parse(con_txt_dcs_instance.Text) + "','payload':{'ignore':'true'}}"; // No LotATC controller connected
|
ExtLotATCJson = "{'type':'101','instance':'" + Int32.Parse(con_txt_dcs_instance.Text) + "','payload':{'ignore':'true'}}"; // No LotATC controller connected
|
||||||
}
|
}
|
||||||
|
if (ExtLotATCStatus)
|
||||||
|
{
|
||||||
DatabaseConnection.SendToMySql(ExtLotATCJson);
|
DatabaseConnection.SendToMySql(ExtLotATCJson);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Let's do not risk int overload
|
// Let's do not risk int overload
|
||||||
Globals.ErrorsDatabase = (Globals.ErrorsDatabase > 999) ? 999 : Globals.ErrorsDatabase;
|
Globals.ErrorsDatabase = (Globals.ErrorsDatabase > 999) ? 999 : Globals.ErrorsDatabase;
|
||||||
|
|||||||
Reference in New Issue
Block a user