Changeset 794:f261b3ac325b for src


Ignore:
Timestamp:
07/24/16 08:47:01 (8 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
Phase:
public
Message:

Messages displayed in the simulator are converted to normal strings (from unicode, if needed) and marked unimportant (re #303)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/fsuipc.py

    r793 r794  
    728728            else: duration = -duration
    729729
     730        try:
     731            message = str(message)
     732        except Exception, e:
     733            print "fsuipc.Simulator.sendMessage: failed to convert the message to a string:", e
     734
    730735        data = [(0x3380, -1 - len(message), message),
    731736                (0x32fa, 'h', duration)]
     
    735740
    736741        self._handler.requestWrite(data, self._handleMessageSent,
    737                                    extra = _disconnect)
     742                                   extra = _disconnect,
     743                                   unimportant = True)
    738744
    739745    def getFuel(self, callback):
Note: See TracChangeset for help on using the changeset viewer.