Fixed that for ChipTan manuell and USB there's no flicker code to decode

This commit is contained in:
dankito 2020-05-24 22:26:48 +02:00
parent 69ed44491c
commit 3072517eef
1 changed files with 1 additions and 1 deletions

View File

@ -739,7 +739,7 @@ open class FinTsClient @JvmOverloads constructor(
val tanProcedure = customer.selectedTanProcedure val tanProcedure = customer.selectedTanProcedure
return when (tanProcedure.type) { return when (tanProcedure.type) {
TanProcedureType.ChipTanFlickercode, TanProcedureType.ChipTanManuell, TanProcedureType.ChipTanUsb -> TanProcedureType.ChipTanFlickercode ->
FlickerCodeTanChallenge(FlickerCodeDecoder().decodeChallenge(challenge, tanProcedure.hhdVersion ?: HHDVersion.HHD_1_4), // HHD 1.4 is currently the most used version FlickerCodeTanChallenge(FlickerCodeDecoder().decodeChallenge(challenge, tanProcedure.hhdVersion ?: HHDVersion.HHD_1_4), // HHD 1.4 is currently the most used version
messageToShowToUser, challenge, tanProcedure, tanResponse.tanMediaIdentifier) messageToShowToUser, challenge, tanProcedure, tanResponse.tanMediaIdentifier)