Skip to content

Commit 8869a50

Browse files
author
iPhysicX
committed
working tests
1 parent 1e3daad commit 8869a50

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

SimConnect/SimConnect.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -900,12 +900,12 @@ def __init__(self, library_path = None, testing_mock_dll=None):
900900
try:
901901
err = self.__Open(byref(self.hSimConnect), LPCSTR(b"Request Data"), None, 0, 0, 0)
902902
if IsHR(err, 0):
903-
LOGGER.debug("Connected to Flight Simulator!")
903+
LOGGER.info("Connected to Flight Simulator!")
904904
# Set up the data definition, but do not yet do anything with itd
905905
# Request an event when the simulation starts
906906
self.__SubscribeToSystemEvent(self.hSimConnect, self.EventID.EVENT_SIM_START, b'SimStart')
907907
except OSError:
908-
LOGGER.debug("Did not find Flight Simulator running.")
908+
LOGGER.error("Did not find Flight Simulator running.")
909909
exit(0)
910910

911911
def Run(self):
@@ -934,7 +934,7 @@ def MapToSimEvent(self, name):
934934
if IsHR(err, 0):
935935
return evnt
936936
else:
937-
LOGGER.debug("Error: MapToSimEvent")
937+
LOGGER.error("Error: MapToSimEvent")
938938
return None
939939

940940
def AddToNotificationGroup(self, group, evnt, bMaskable=False):

SimConnect/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,6 @@ def int_or_str(value):
1212

1313
__all__ = [
1414
"SimConnect",
15-
"Request"
15+
"Request",
16+
"millis"
1617
]

0 commit comments

Comments
 (0)