Changeset 290:1435334517fc for src
- Timestamp:
- 07/10/12 14:42:15 (12 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/fsuipc.py
r289 r290 142 142 self._id = id 143 143 self._period = period 144 self._nextFire = time.time() + period144 self._nextFire = time.time() 145 145 self._data = data 146 146 self._preparedData = None … … 571 571 572 572 self._latin1decoder = codecs.getdecoder("iso-8859-1") 573 self._fuelCallback = None 573 574 574 575 def connect(self, aircraft): … … 667 668 - the current total capacity of the tank (in kgs).""" 668 669 if self._aircraftModel is None: 669 callback([])670 self._fuelCallback = callback 670 671 else: 671 672 self._aircraftModel.getFuel(self._handler, callback) … … 801 802 802 803 createdNewModel = self._setAircraftName(timestamp, data[5], data[6]) 804 if self._fuelCallback is not None: 805 self._aircraftModel.getFuel(self._handler, self._fuelCallback) 806 self._fuelCallback = None 803 807 804 808 self._scroll = data[7]!=0
Note:
See TracChangeset
for help on using the changeset viewer.