From fe6d44d2731d89de822fa31d942667a4dc986384 Mon Sep 17 00:00:00 2001 From: MX <10697207+xMasterX@users.noreply.github.com> Date: Thu, 30 Mar 2023 03:00:00 +0300 Subject: [PATCH] Show external CC1101 in weather station and POCSAG Pager apps --- .../pocsag_pager/images/Fishing_123x52.png | Bin 0 -> 966 bytes .../pocsag_pager/views/pocsag_pager_receiver.c | 8 ++++++-- .../weather_station/images/Fishing_123x52.png | Bin 0 -> 966 bytes .../views/weather_station_receiver.c | 7 ++++++- 4 files changed, 12 insertions(+), 3 deletions(-) create mode 100644 applications/external/pocsag_pager/images/Fishing_123x52.png create mode 100644 applications/external/weather_station/images/Fishing_123x52.png diff --git a/applications/external/pocsag_pager/images/Fishing_123x52.png b/applications/external/pocsag_pager/images/Fishing_123x52.png new file mode 100644 index 0000000000000000000000000000000000000000..1e365de8f4d9c5aeb0b3b11097a2e65eb3451b99 GIT binary patch literal 966 zcmV;%13CPOP)w&j00001b5ch_0Itp) z=>Px&fJsC_RCt{2o7ryVAPj~{)c1d7dQlO%9NTzf35QP_r88l1_%RsMxpK}q9lnBl zwgHE69I?NMA8WfkPZk&xWE>@309V>Reg=;Dhz-mKd1O8jsbMKlmU$+v0WBU~C5u zA9XtMj1?-jRcK4l=IL`bmT&b0sopU%pR;SMOZnTV1+KrDi*Mlj8S%}BXL}o!d^|T9 zR`hPpgX{64zKt3O>5(;JT*5rNKzX=y$y;SPm)MKhsEFz=s|1+T##P2QQsaN#Ia&immXMTS%d9mvpoXR^5RwOtnn=CkJv3w)Fcg7K6>qV z3nz6VS2P|a>IjdwM%OzLe)Qtta_Q7FBE1Ov=gRCXbV^3CwM#W8aBG0Q=TK-f^?rAe z3#8bsXjv+_MPSYjDOi+^wY>w-K?7sFeiQ2Ay8J?@{SZ zcv}=T*i`NwdpA3U>+L^6r#mWX!Ikld%9fA|f={mf(b4MexIA0y zu^KF?(UHlaH{$Ya?PZCSBUT^G=WI@BkKm*0eG{$>npE)Cv-~WvgS)gj@VIm162V(f z%VdKSCUOhenJ0thZb%_;L48FB&Z<history_item == 0) { - canvas_draw_icon(canvas, 0, 0, &I_Scanning_123x52); + canvas_draw_icon( + canvas, + 0, + 0, + furi_hal_subghz_get_radio_type() ? &I_Fishing_123x52 : &I_Scanning_123x52); canvas_set_font(canvas, FontPrimary); canvas_draw_str(canvas, 63, 46, "Scanning..."); - //canvas_draw_line(canvas, 46, 51, 125, 51); canvas_set_font(canvas, FontSecondary); + canvas_draw_str(canvas, 44, 10, furi_hal_subghz_get_radio_type() ? "Ext" : "Int"); } // Draw RSSI diff --git a/applications/external/weather_station/images/Fishing_123x52.png b/applications/external/weather_station/images/Fishing_123x52.png new file mode 100644 index 0000000000000000000000000000000000000000..1e365de8f4d9c5aeb0b3b11097a2e65eb3451b99 GIT binary patch literal 966 zcmV;%13CPOP)w&j00001b5ch_0Itp) z=>Px&fJsC_RCt{2o7ryVAPj~{)c1d7dQlO%9NTzf35QP_r88l1_%RsMxpK}q9lnBl zwgHE69I?NMA8WfkPZk&xWE>@309V>Reg=;Dhz-mKd1O8jsbMKlmU$+v0WBU~C5u zA9XtMj1?-jRcK4l=IL`bmT&b0sopU%pR;SMOZnTV1+KrDi*Mlj8S%}BXL}o!d^|T9 zR`hPpgX{64zKt3O>5(;JT*5rNKzX=y$y;SPm)MKhsEFz=s|1+T##P2QQsaN#Ia&immXMTS%d9mvpoXR^5RwOtnn=CkJv3w)Fcg7K6>qV z3nz6VS2P|a>IjdwM%OzLe)Qtta_Q7FBE1Ov=gRCXbV^3CwM#W8aBG0Q=TK-f^?rAe z3#8bsXjv+_MPSYjDOi+^wY>w-K?7sFeiQ2Ay8J?@{SZ zcv}=T*i`NwdpA3U>+L^6r#mWX!Ikld%9fA|f={mf(b4MexIA0y zu^KF?(UHlaH{$Ya?PZCSBUT^G=WI@BkKm*0eG{$>npE)Cv-~WvgS)gj@VIm162V(f z%VdKSCUOhenJ0thZb%_;L48FB&Z<history_item == 0) { - canvas_draw_icon(canvas, 0, 0, &I_Scanning_123x52); + canvas_draw_icon( + canvas, + 0, + 0, + furi_hal_subghz_get_radio_type() ? &I_Fishing_123x52 : &I_Scanning_123x52); canvas_set_font(canvas, FontPrimary); canvas_draw_str(canvas, 63, 46, "Scanning..."); canvas_set_font(canvas, FontSecondary); + canvas_draw_str(canvas, 44, 10, furi_hal_subghz_get_radio_type() ? "Ext" : "Int"); } // Draw RSSI