mirror of
				https://github.com/Oleg-Stepanenko-owo/IEBUS
				synced 2025-10-28 08:57:13 +00:00 
			
		
		
		
	Update display off logic
after display off, Honda displey alweys be off and comutate on Garmin.
This commit is contained in:
		
							parent
							
								
									1cc156cc12
								
							
						
					
					
						commit
						a136f6f0e5
					
				| @ -45,11 +45,11 @@ const byte mtSearchHeadSize = sizeof(mtSearchHead) / sizeof(AvcInCmdTable); | |||||||
| void printAvcAction( AvcActionID id ) | void printAvcAction( AvcActionID id ) | ||||||
| //--------------------------------------------------------------------------------
 | //--------------------------------------------------------------------------------
 | ||||||
| { | { | ||||||
|   if (!bSDLog.bRedyToLog) return; |   //if (!bSDLog.bRedyToLog) return;
 | ||||||
| 
 | 
 | ||||||
|   char mBuff[20] = { 0 }; |   // char mBuff[20] = { 0 };
 | ||||||
|   sprintf( mBuff, "[%u]{%d}", millis(), id ); |   // sprintf( mBuff, "[%u]{%d}", millis(), id );
 | ||||||
|   bSDLog.logs( mBuff ); |   // bSDLog.logs( mBuff );
 | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // AVCLan Navi & timer1 init,
 | // AVCLan Navi & timer1 init,
 | ||||||
| @ -141,13 +141,13 @@ void AVCLanHonda::processAction(AvcActionID ActionID) | |||||||
|       setLockTime( (unsigned long)(millis() + LOCK_TIME) ); |       setLockTime( (unsigned long)(millis() + LOCK_TIME) ); | ||||||
|       break; |       break; | ||||||
|     case ACT_DISP_OFF: |     case ACT_DISP_OFF: | ||||||
|       if ( !bShowRearCam && isWait() ) |       if ( !bShowRearCam ) | ||||||
|       { |       { | ||||||
|         bShowHondaDisp = false; |         bShowHondaDisp = false; | ||||||
|         isHondaDisLast = false;       |         isHondaDisLast = false;       | ||||||
|       } |  | ||||||
| 		printAvcAction(ActionID); | 		printAvcAction(ActionID); | ||||||
|         setLockTime( (unsigned long)(millis() + LOCK_TIME) ); |         setLockTime( (unsigned long)(millis() + LOCK_TIME) ); | ||||||
|  |       } | ||||||
|       break; |       break; | ||||||
|     case ACT_CAM_OFF: |     case ACT_CAM_OFF: | ||||||
|       bShowRearCam = false; |       bShowRearCam = false; | ||||||
|  | |||||||
| @ -28,10 +28,10 @@ | |||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| #define AVCLANDEVICE_NAME    " Honda Kb1" | #define AVCLANDEVICE_NAME    " Honda Kb1" | ||||||
| #define AVCLANDEVICE_VERSION "0.0.6" | #define AVCLANDEVICE_VERSION "0.0.7" | ||||||
| 
 | 
 | ||||||
| #define BUTT_WAIT 700 | #define BUTT_WAIT 1000 | ||||||
| #define LOCK_TIME 2000 | #define LOCK_TIME 700 | ||||||
| 
 | 
 | ||||||
| //--------------------------------------------------------------------------------
 | //--------------------------------------------------------------------------------
 | ||||||
| typedef enum { | typedef enum { | ||||||
|  | |||||||
							
								
								
									
										12
									
								
								notepad_project
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								notepad_project
									
									
									
									
									
										Normal 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> | ||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user