From 35a0e0a7a635e882ccf52205ddabfeb68bebd80a Mon Sep 17 00:00:00 2001 From: ubicorn Date: Sat, 7 Dec 2019 15:15:25 +0000 Subject: [PATCH] Added support for HONG KONG and SPAIN --- Test/Test.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Test/Test.cpp b/Test/Test.cpp index 6c005e8..4ba87d3 100644 --- a/Test/Test.cpp +++ b/Test/Test.cpp @@ -112,6 +112,14 @@ uint8_t Test::getCurrencyIdFromIso2Code(char* iso2code) { if(strcmp(iso2code, "IS") == 0 || strcmp(iso2code, "is") == 0) { currencyId = CURRENCY_ICELAND; } + + if(strcmp(iso2code, "HK") == 0 || strcmp(iso2code, "hk") == 0) { + currencyId = CURRENCY_HONG_KONG; + } + + if(strcmp(iso2code, "SP") == 0 || strcmp(iso2code, "sp") == 0) { + currencyId = CURRENCY_SPAIN; + } if(strcmp(iso2code, "US") == 0 || strcmp(iso2code, "us") == 0) { currencyId = CURRENCY_USA;