Oops - fix broken FAT_DATE() and FAT_TIME() macros.
This commit is contained in:
		
							parent
							
								
									df9b04c87f
								
							
						
					
					
						commit
						dddb709c43
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -80,7 +80,7 @@
 | 
			
		|||
		 *
 | 
			
		||||
		 *  \return Given time encoded as a FAT filesystem timestamp
 | 
			
		||||
		 */
 | 
			
		||||
		#define FAT_TIME(h, m, s)         ((hh << 11) | (mm << 5) | (ss >> 1))
 | 
			
		||||
		#define FAT_TIME(hh, mm, ss)      ((hh << 11) | (mm << 5) | (ss >> 1))
 | 
			
		||||
 | 
			
		||||
		/** Converts a given date in DD/MM/YYYY format to a FAT filesystem date.
 | 
			
		||||
		 *
 | 
			
		||||
| 
						 | 
				
			
			@ -90,7 +90,7 @@
 | 
			
		|||
		 *
 | 
			
		||||
		 *  \return Given date encoded as a FAT filesystem datestamp
 | 
			
		||||
		 */
 | 
			
		||||
		#define FAT_DATE(d, m, y)         (((yyyy - 1980) << 9) | (mm << 5) | (dd << 0))
 | 
			
		||||
		#define FAT_DATE(dd, mm, yyyy)    (((yyyy - 1980) << 9) | (mm << 5) | (dd << 0))
 | 
			
		||||
 | 
			
		||||
	/* Type Definitions: */
 | 
			
		||||
		/** FAT boot block structure definition, used to identify the core
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue