mirror of
				https://github.com/saitohirga/WSJT-X.git
				synced 2025-10-26 02:20:20 -04:00 
			
		
		
		
	Fix pack/unpack bugs reported by VE5VA.
git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@3121 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
		
							parent
							
								
									1017746f07
								
							
						
					
					
						commit
						3f1d3a32ec
					
				| @ -2,7 +2,7 @@ | ||||
| 
 | ||||
|       parameter (MASK28=2**28 - 1) | ||||
|       character*13 msg | ||||
|       character*44 c | ||||
|       character*42 c | ||||
|       data c/'0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ +-./?'/ | ||||
| 
 | ||||
|       nc1=0 | ||||
| @ -10,7 +10,7 @@ | ||||
|       nc3=0 | ||||
| 
 | ||||
|       do i=1,5                                !First 5 characters in nc1 | ||||
|          do j=1,44                            !Get character code | ||||
|          do j=1,42                            !Get character code | ||||
|             if(msg(i:i).eq.c(j:j)) go to 10 | ||||
|          enddo | ||||
|          j=37 | ||||
| @ -19,7 +19,7 @@ | ||||
|       enddo | ||||
| 
 | ||||
|       do i=6,10                               !Characters 6-10 in nc2 | ||||
|          do j=1,44                            !Get character code | ||||
|          do j=1,42                            !Get character code | ||||
|             if(msg(i:i).eq.c(j:j)) go to 20 | ||||
|          enddo | ||||
|          j=37 | ||||
| @ -28,7 +28,7 @@ | ||||
|       enddo | ||||
| 
 | ||||
|       do i=11,13                              !Characters 11-13 in nc3 | ||||
|          do j=1,44                            !Get character code | ||||
|          do j=1,42                            !Get character code | ||||
|             if(msg(i:i).eq.c(j:j)) go to 30 | ||||
|          enddo | ||||
|          j=37 | ||||
|  | ||||
| @ -16,7 +16,7 @@ subroutine unpackmsg(dat,msg) | ||||
| 
 | ||||
|   ng=ishft(iand(dat(10),15),12) + ishft(dat(11),6) + dat(12) | ||||
| 
 | ||||
|   if(ng.gt.32768) then | ||||
|   if(ng.ge.32768) then | ||||
|      call unpacktext(nc1,nc2,ng,msg) | ||||
|      go to 100 | ||||
|   endif | ||||
|  | ||||
| @ -1,4 +1,4 @@ | ||||
| //-------------------------------------------------------------- MainWindow
 | ||||
| //------------------------------------------------------------- MainWindow
 | ||||
| #include "mainwindow.h" | ||||
| #include "ui_mainwindow.h" | ||||
| #include "devsetup.h" | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user