You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// MacOS and Windows writeWithoutResponse sends packets faster than Trezor is able to process or just loose packets and doesn't send them at all (macos)
80
+
// we need to use throttle it to make sure that they are received and processed correctly
81
+
// NOTE: the faster it sends the longer it waits when withResponse is used
82
+
constMIN_PACKETS=8;
83
+
constMAX_PACKETS=16;
84
+
constPACKET_SIZE=244;
85
+
constWITH_RESPONSE_BYTES=PACKET_SIZE*MAX_PACKETS;
86
+
letwithResponse=false;
87
+
constlastWrite=Date.now()-writeBuffer.lastWrite;
88
+
// windows: use delay between packets. do not use writeWithResponse - it takes too long
0 commit comments