From 31cfd0a89320fba841bcbf9101728fe97521957b Mon Sep 17 00:00:00 2001 From: John Wiseman Date: Sun, 2 Aug 2020 16:21:09 -0700 Subject: [PATCH] Force ICAO hex codes to upper-case. The V2 ADSBX API returns lower case, so let's get ready. --- src/main/lemondronor/advisorycircular.cljs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/lemondronor/advisorycircular.cljs b/src/main/lemondronor/advisorycircular.cljs index e0513e7..6d31d82 100644 --- a/src/main/lemondronor/advisorycircular.cljs +++ b/src/main/lemondronor/advisorycircular.cljs @@ -86,7 +86,7 @@ {:postime (numstr (e "postime")) :lat (numstr (e "lat")) :lon (numstr (e "lon")) - :icao (e "icao") + :icao (.toUpperCase (e "icao")) :registration (nilstr (e "reg")) ;; Altitude in feet at standard pressure. :alt (numstr (e "alt"))