1
0
Fork 0

Fix handling of multiple MFDs

Found by chance during code read.  Untested, but surely correct.
This commit is contained in:
Stuart Buchanan 2017-11-17 15:53:26 +00:00
parent 8dafff9933
commit 1e69f3eb75

View file

@ -187,7 +187,7 @@ var PFD_Device =
var pfd_obj = me;
me.Recipient.Receive = func(notification)
{
if (notification.Device_id = pfd_obj.device_id
if (notification.Device_id == pfd_obj.device_id
and notification.NotificationType == notifications.PFDEventNotification.DefaultType) {
if (notification.Event_Id == notifications.PFDEventNotification.SoftKeyPushed
and notification.EventParameter != nil)