comparison Discovery/Src/t7.c @ 661:87bee7cc77b3

Undo Rev. 660
author heinrichs weikamp
date Mon, 01 Nov 2021 12:39:34 +0100
parents f4b553da620a
children 1b995079c045
comparison
equal deleted inserted replaced
660:f4b553da620a 661:87bee7cc77b3
33 #include "data_exchange_main.h" 33 #include "data_exchange_main.h"
34 #include "decom.h" 34 #include "decom.h"
35 #include "gfx_fonts.h" 35 #include "gfx_fonts.h"
36 #include "logbook_miniLive.h" 36 #include "logbook_miniLive.h"
37 #include "math.h" 37 #include "math.h"
38 #include "tComm.h"
39 #include "tHome.h" 38 #include "tHome.h"
40 #include "simulation.h" 39 #include "simulation.h"
41 #include "timer.h" 40 #include "timer.h"
42 #include "unit.h" 41 #include "unit.h"
43 #include "motion.h" 42 #include "motion.h"
742 sprintf(text,"Settings: %u",errorsInSettings); 741 sprintf(text,"Settings: %u",errorsInSettings);
743 GFX_write_string_color(&FontT42,&t7surfaceR,text,4,CLUT_WarningRed); 742 GFX_write_string_color(&FontT42,&t7surfaceR,text,4,CLUT_WarningRed);
744 } 743 }
745 else 744 else
746 */ 745 */
747 if(DataEX_was_power_on()) { 746 if(DataEX_was_power_on())
748 GFX_write_string_color(&FontT42,&t7surfaceR,"cold start",4,CLUT_WarningRed); 747 GFX_write_string_color(&FontT42,&t7surfaceR,"cold start",4,CLUT_WarningRed);
749 // Reset the bluetooth interface after a cold start
750 tComm_Set_Bluetooth_Name(1);
751 }
752 748
753 /* time and date */ 749 /* time and date */
754 translateDate(stateUsed->lifeData.dateBinaryFormat, &Sdate); 750 translateDate(stateUsed->lifeData.dateBinaryFormat, &Sdate);
755 translateTime(stateUsed->lifeData.timeBinaryFormat, &Stime); 751 translateTime(stateUsed->lifeData.timeBinaryFormat, &Stime);
756 752
1612 } 1608 }
1613 1609
1614 uint8_t t7_change_customview(uint8_t action) 1610 uint8_t t7_change_customview(uint8_t action)
1615 { 1611 {
1616 uint8_t *pViews; 1612 uint8_t *pViews;
1617 uint8_t *pStartView,*pLastView; 1613 uint8_t *pStartView,*pCurView, *pLastView;
1618 uint8_t *pCurView = NULL;
1619 _Bool cv_disabled = 0; 1614 _Bool cv_disabled = 0;
1620 1615
1621 if(stateUsed->mode == MODE_DIVE) 1616 if(stateUsed->mode == MODE_DIVE)
1622 pViews = (uint8_t*)customviewsDive; 1617 pViews = (uint8_t*)customviewsDive;
1623 else 1618 else