aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Embedded_SW/Embedded/Modules/General
diff options
context:
space:
mode:
authorAvi Levkovich <avi@twine-s.com>2019-11-19 13:33:51 +0200
committerAvi Levkovich <avi@twine-s.com>2019-11-19 13:33:51 +0200
commitb5ea623d1ea2cef2e117c12eaf4cd66351c42cce (patch)
treeff15a121e57afc6cf4f017bcc2d4d6a7cc7dd78d /Software/Embedded_SW/Embedded/Modules/General
parentd87f59593916413b747ebe15f409ec09007747a3 (diff)
parentd50797ddb8c3d886d38a56a09dfe34540512e331 (diff)
downloadTango-b5ea623d1ea2cef2e117c12eaf4cd66351c42cce.tar.gz
Tango-b5ea623d1ea2cef2e117c12eaf4cd66351c42cce.zip
Merge branch 'master' of https://twinetfs.visualstudio.com/_git/Tango
Diffstat (limited to 'Software/Embedded_SW/Embedded/Modules/General')
-rw-r--r--Software/Embedded_SW/Embedded/Modules/General/buttons.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/Software/Embedded_SW/Embedded/Modules/General/buttons.c b/Software/Embedded_SW/Embedded/Modules/General/buttons.c
index 1b3f16044..6868cfda1 100644
--- a/Software/Embedded_SW/Embedded/Modules/General/buttons.c
+++ b/Software/Embedded_SW/Embedded/Modules/General/buttons.c
@@ -314,7 +314,7 @@ uint32_t ShortLongOffPB(uint8_t OnOffPB, button *pBtn)
if( pBtn->count > SECOND1 )
{
pBtn->Action = SHORTPB ;
- ReportWithPackageFilter(GeneralFilter,"------------ 2 seconds count PB Power -----------------", __FILE__,__LINE__,0, RpMessage, 0, 0);
+ ReportWithPackageFilter(GeneralFilter,"------------ 1 seconds count PB Power -----------------", __FILE__,__LINE__,0, RpMessage, 0, 0);
}
}
else
@@ -599,7 +599,7 @@ uint32_t LoadStatMachine( button *pBtn)
case (REPLONGPB):
pBtn->state = sttPRELOAD;
pBtn->color = BLINK;*/
- if (ThreadLoadButton( THREAD_LOAD_INIT))
+ if (ThreadLoadButton( THREAD_LOAD_INIT) == OK)
{
pBtn->state = sttPRELOAD ; // to do
pBtn->color = colorON;
@@ -624,7 +624,7 @@ uint32_t LoadStatMachine( button *pBtn)
case (REPLONGPB):
pBtn->color = BLUE;
Pannel_Leds(THREAD_LOAD, MODE_ON);//AVI+*/
- if (ThreadLoadButton( THREAD_LOAD_INITIAL_TENSION))
+ if (ThreadLoadButton( THREAD_LOAD_INITIAL_TENSION) == OK)
{
pBtn->state = sttRDY ; // to do
pBtn->color = colorON;
@@ -644,7 +644,7 @@ uint32_t LoadStatMachine( button *pBtn)
ReportWithPackageFilter(GeneralFilter,"------------ load.state = sttLOADING -----------------", __FILE__,__LINE__,0, RpMessage, 0, 0);
pBtn->color = fastBILNK;
Pannel_Leds(THREAD_LOAD, MODE_ON);//AVI+
- if (ThreadLoadButton( THREAD_LOAD_END))
+ if (ThreadLoadButton( THREAD_LOAD_END) == OK)
{
pBtn->state = sttRDY ; // to do
pBtn->color = colorON;