Fix handling of multiple MFDs
Found by chance during code read. Untested, but surely correct.
This commit is contained in:
parent
8dafff9933
commit
1e69f3eb75
1 changed files with 14 additions and 14 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue