File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -12,12 +12,12 @@ import (
12
12
13
13
// handle SPINE events
14
14
func (e * LPC ) HandleEvent (payload spineapi.EventPayload ) {
15
- if ! e .IsCompatibleEntityType (payload .Entity ) {
15
+ if internal .IsDeviceConnected (payload ) {
16
+ e .deviceConnected (payload )
16
17
return
17
18
}
18
19
19
- if internal .IsDeviceConnected (payload ) {
20
- e .deviceConnected (payload )
20
+ if ! e .IsCompatibleEntityType (payload .Entity ) {
21
21
return
22
22
}
23
23
Original file line number Diff line number Diff line change @@ -12,12 +12,12 @@ import (
12
12
13
13
// handle SPINE events
14
14
func (e * LPP ) HandleEvent (payload spineapi.EventPayload ) {
15
- if ! e .IsCompatibleEntityType (payload .Entity ) {
15
+ if internal .IsDeviceConnected (payload ) {
16
+ e .deviceConnected (payload )
16
17
return
17
18
}
18
19
19
- if internal .IsDeviceConnected (payload ) {
20
- e .deviceConnected (payload )
20
+ if ! e .IsCompatibleEntityType (payload .Entity ) {
21
21
return
22
22
}
23
23
You can’t perform that action at this time.
0 commit comments