mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	Uemis downloader: fix bug when creating dive site
Use dive->when when creating a dive site instead of time(NULL) as Dirk suggested Signed-off-by: glerch <guido.lerch@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
		
							parent
							
								
									0dd32d3495
								
							
						
					
					
						commit
						bd00c6b83b
					
				
					 1 changed files with 1 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -892,8 +892,7 @@ static bool process_raw_buffer(device_data_t *devdata, uint32_t deviceid, char *
 | 
			
		|||
			if (for_dive)
 | 
			
		||||
				*for_dive = atoi(val);
 | 
			
		||||
		} else if (!is_log && dive && !strcmp(tag, "divespot_id")) {
 | 
			
		||||
			timestamp_t t;
 | 
			
		||||
			dive->dive_site_uuid = create_dive_site("from Uemis", (int)time(NULL));
 | 
			
		||||
			dive->dive_site_uuid = create_dive_site("from Uemis", dive->when);
 | 
			
		||||
			track_divespot(val, dive->dc.diveid, dive->dive_site_uuid);
 | 
			
		||||
#if UEMIS_DEBUG & 2
 | 
			
		||||
			fprintf(debugfile, "Created divesite %d for diveid : %d\n", dive->dive_site_uuid, dive->dc.diveid);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue