mirror of
https://github.com/Oleg-Stepanenko-owo/IEBUS.git
synced 2026-08-22 05:42:57 +00:00
Update display off logic
after display off, Honda displey alweys be off and comutate on Garmin.
This commit is contained in:
@@ -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;
|
||||
isHondaDisLast = false;
|
||||
printAvcAction(ActionID);
|
||||
setLockTime( (unsigned long)(millis() + LOCK_TIME) );
|
||||
}
|
||||
printAvcAction(ActionID);
|
||||
setLockTime( (unsigned long)(millis() + LOCK_TIME) );
|
||||
break;
|
||||
case ACT_CAM_OFF:
|
||||
bShowRearCam = false;
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user