Restart USB ports after a power overdraw (error -110). Unplug all devices prior to running script.
References:
| import * as IOEffects from 'redux-saga/effects' | |
| export function * select (...args) { | |
| return yield IOEffects.select(...args) | |
| } | |
| export function * put (...args) { | |
| return yield IOEffects.put(...args) | |
| } |
Restart USB ports after a power overdraw (error -110). Unplug all devices prior to running script.
References:
| function compress(string, encoding) { | |
| const byteArray = new TextEncoder().encode(string); | |
| const cs = new CompressionStream(encoding); | |
| const writer = cs.writable.getWriter(); | |
| writer.write(byteArray); | |
| writer.close(); | |
| return new Response(cs.readable).arrayBuffer(); | |
| } | |
| function decompress(byteArray, encoding) { |