Make options default to {}

This commit is contained in:
László Monda
2017-03-18 15:45:51 +01:00
parent f4b776185a
commit 4c75d736d3

View File

@@ -47,7 +47,7 @@ class DelayMs {
}
}
function sendUsbPacketsByCallback(packetProvider, options) {
function sendUsbPacketsByCallback(packetProvider, options={}) {
let packet = packetProvider()
if (packet instanceof DelayMs) {