Mercurial > public > ostc4
diff Discovery/Src/t7.c @ 660:f4b553da620a
Add option to reset bluetooth name
author | heinrichsweikamp |
---|---|
date | Sun, 08 Aug 2021 09:36:23 +0200 |
parents | 3ccf13af4651 |
children | 87bee7cc77b3 |
line wrap: on
line diff
--- a/Discovery/Src/t7.c Wed Apr 28 09:47:25 2021 +0200 +++ b/Discovery/Src/t7.c Sun Aug 08 09:36:23 2021 +0200 @@ -35,6 +35,7 @@ #include "gfx_fonts.h" #include "logbook_miniLive.h" #include "math.h" +#include "tComm.h" #include "tHome.h" #include "simulation.h" #include "timer.h" @@ -743,8 +744,11 @@ } else */ - if(DataEX_was_power_on()) + if(DataEX_was_power_on()) { GFX_write_string_color(&FontT42,&t7surfaceR,"cold start",4,CLUT_WarningRed); + // Reset the bluetooth interface after a cold start + tComm_Set_Bluetooth_Name(1); + } /* time and date */ translateDate(stateUsed->lifeData.dateBinaryFormat, &Sdate); @@ -1610,7 +1614,8 @@ uint8_t t7_change_customview(uint8_t action) { uint8_t *pViews; - uint8_t *pStartView,*pCurView, *pLastView; + uint8_t *pStartView,*pLastView; + uint8_t *pCurView = NULL; _Bool cv_disabled = 0; if(stateUsed->mode == MODE_DIVE)