Skip to content

Commit

Permalink
代码优化
Browse files Browse the repository at this point in the history
  • Loading branch information
smthing committed May 31, 2024
1 parent 7f85163 commit 6fcb194
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion driverbox/export/mirror/export.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ func NewExport() *Export {

// 点位变化触发场景联动
func (export *Export) ExportTo(deviceData plugin.DeviceData) {
callback.OnReceiveHandler(export.plugin.VirtualConnector, deviceData)
if export.plugin.VirtualConnector != nil {
callback.OnReceiveHandler(export.plugin.VirtualConnector, deviceData)
}
}

// 继承Export OnEvent接口
Expand Down

0 comments on commit 6fcb194

Please sign in to comment.