mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-18 15:53:23 +02:00
fix deprecated warnings on Buffer class (#580)
Signed-off-by: Denis barbaron <denis.barbaron@orange.com> Signed-off-by: Denis barbaron <denis.barbaron@orange.com>
This commit is contained in:
@@ -72,7 +72,7 @@ module.exports = syrup.serial()
|
||||
)
|
||||
return connectService(1)
|
||||
.then(function(out) {
|
||||
var header = new Buffer(4)
|
||||
var header = Buffer.alloc(4)
|
||||
header.writeUInt16LE(0, 0)
|
||||
header.writeUInt16LE(forward.devicePort, 2)
|
||||
out.write(header)
|
||||
|
||||
Reference in New Issue
Block a user