Make options default to {}
This commit is contained in:
@@ -47,7 +47,7 @@ class DelayMs {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function sendUsbPacketsByCallback(packetProvider, options) {
|
function sendUsbPacketsByCallback(packetProvider, options={}) {
|
||||||
let packet = packetProvider()
|
let packet = packetProvider()
|
||||||
|
|
||||||
if (packet instanceof DelayMs) {
|
if (packet instanceof DelayMs) {
|
||||||
|
|||||||
Reference in New Issue
Block a user