Allow extension to force to write without response as well as with response

This commit is contained in:
Ikuo Terado 2019-11-03 22:07:16 +09:00
parent 0a5673d5d3
commit fbbccacd74

View file

@ -153,7 +153,7 @@ class BLE extends JSONRPC {
if (encoding) {
params.encoding = encoding;
}
if (withResponse) {
if (withResponse !== null) {
params.withResponse = withResponse;
}
return this.sendRemoteRequest('write', params)