mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-18 22:44:29 +01:00
Fix device not found with Trezor T
This commit is contained in:
@@ -281,12 +281,11 @@ namespace BTCPayServer.Controllers
|
||||
goto askdevice;
|
||||
case "ask-device":
|
||||
askdevice:
|
||||
var selector = deviceEntry?.DeviceSelector;
|
||||
password = null;
|
||||
deviceEntry = null;
|
||||
device = null;
|
||||
var entries = (await hwi.EnumerateEntriesAsync(cancellationToken)).ToList();
|
||||
deviceEntry = entries.Where(e => selector == null || SameSelector(selector, e.DeviceSelector)).FirstOrDefault();
|
||||
deviceEntry = entries.FirstOrDefault();
|
||||
if (deviceEntry == null)
|
||||
{
|
||||
await websocketHelper.Send("{ \"error\": \"no-device\"}", cancellationToken);
|
||||
|
||||
Reference in New Issue
Block a user