1
0
mirror of https://github.com/Oleg-Stepanenko-owo/IEBUS synced 2025-06-28 02:06:24 +00:00

Update display off logic

after display off,
Honda displey alweys be off and comutate on Garmin.
This commit is contained in:
OlegStepanenko_noute 2016-02-20 21:26:47 +02:00
parent 1cc156cc12
commit a136f6f0e5
3 changed files with 23 additions and 11 deletions

View File

@ -45,11 +45,11 @@ const byte mtSearchHeadSize = sizeof(mtSearchHead) / sizeof(AvcInCmdTable);
void printAvcAction( AvcActionID id )
//--------------------------------------------------------------------------------
{
if (!bSDLog.bRedyToLog) return;
//if (!bSDLog.bRedyToLog) return;
char mBuff[20] = { 0 };
sprintf( mBuff, "[%u]{%d}", millis(), id );
bSDLog.logs( mBuff );
// char mBuff[20] = { 0 };
// sprintf( mBuff, "[%u]{%d}", millis(), id );
// bSDLog.logs( mBuff );
}
// AVCLan Navi & timer1 init,
@ -141,13 +141,13 @@ void AVCLanHonda::processAction(AvcActionID ActionID)
setLockTime( (unsigned long)(millis() + LOCK_TIME) );
break;
case ACT_DISP_OFF:
if ( !bShowRearCam && isWait() )
if ( !bShowRearCam )
{
bShowHondaDisp = false;
isHondaDisLast = false;
}
printAvcAction(ActionID);
setLockTime( (unsigned long)(millis() + LOCK_TIME) );
}
break;
case ACT_CAM_OFF:
bShowRearCam = false;

View File

@ -28,10 +28,10 @@
#define AVCLANDEVICE_NAME " Honda Kb1"
#define AVCLANDEVICE_VERSION "0.0.6"
#define AVCLANDEVICE_VERSION "0.0.7"
#define BUTT_WAIT 700
#define LOCK_TIME 2000
#define BUTT_WAIT 1000
#define LOCK_TIME 700
//--------------------------------------------------------------------------------
typedef enum {

12
notepad_project Normal file
View File

@ -0,0 +1,12 @@
<NotepadPlus>
<Project name="IE_BUS">
<File name="AVCLan_mini\AVCLanDrv.cpp" />
<File name="AVCLan_mini\AVCLanDrv.h" />
<File name="AVCLan_mini\AVCLanHonda.cpp" />
<File name="AVCLan_mini\AVCLanHonda.h" />
<File name="AVCLan_mini\AVCLan_mini.ino" />
<File name="AVCLan_mini\config.h" />
<File name="AVCLan_mini\SD_Log.cpp" />
<File name="AVCLan_mini\SD_Log.h" />
</Project>
</NotepadPlus>