mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-18 16:23:28 +02:00
Use wireutil.reply() where possible.
This commit is contained in:
@@ -337,14 +337,11 @@ module.exports = syrup.serial()
|
||||
.then(function() {
|
||||
router
|
||||
.on(wire.PhysicalIdentifyMessage, function(channel) {
|
||||
var reply = wireutil.reply(options.serial)
|
||||
identity()
|
||||
push.send([
|
||||
channel
|
||||
, wireutil.envelope(new wire.TransactionDoneMessage(
|
||||
options.serial
|
||||
, 0
|
||||
, true
|
||||
))
|
||||
, reply.okay()
|
||||
])
|
||||
})
|
||||
.on(wire.KeyDownMessage, function(channel, message) {
|
||||
|
||||
Reference in New Issue
Block a user