kopia lustrzana https://github.com/ge0rg/aprsdroid
				
				
				
			Scala: fix octal character deprecation warning
							rodzic
							
								
									571d5b580d
								
							
						
					
					
						commit
						aafb3ec855
					
				|  | @ -8,7 +8,7 @@ object AprsPacket { | |||
| 
 | ||||
| 	def passcode(callssid : String) : Int = { | ||||
| 		// remove ssid, uppercase, add \0 for odd-length calls | ||||
| 		val call = callssid.split("-")(0).toUpperCase() + "\0" | ||||
| 		val call = callssid.split("-")(0).toUpperCase() + "\u0000" | ||||
| 		var hash = 0x73e2 | ||||
| 		for (i <- 0 to call.length-2 by 2) { | ||||
| 			hash ^= call(i) << 8 | ||||
|  |  | |||
		Ładowanie…
	
		Reference in New Issue
	
	 Georg Lukas
						Georg Lukas