mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-23 06:35:13 +01:00
Fix device not found with Trezor T
This commit is contained in:
parent
23b9dfed2c
commit
33703b83a3
2 changed files with 2 additions and 3 deletions
|
@ -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);
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<Project>
|
||||
<PropertyGroup>
|
||||
<Version>1.0.3.145</Version>
|
||||
<Version>1.0.3.146</Version>
|
||||
</PropertyGroup>
|
||||
</Project>
|
||||
|
|
Loading…
Add table
Reference in a new issue