fix: hex number formatting width
Signed-off-by: Christopher Arndt <chris@chrisarndt.de>
This commit is contained in:
		
							parent
							
								
									f78bb963fb
								
							
						
					
					
						commit
						aadbd26fab
					
				@ -73,7 +73,7 @@ proc midiEventPrinterProc() {.thread.} =
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
            if recvBuf[0] <= 3:
 | 
					            if recvBuf[0] <= 3:
 | 
				
			||||||
                for i in 0..<recvBuf[0].int:
 | 
					                for i in 0..<recvBuf[0].int:
 | 
				
			||||||
                    stdout.write(fmt"{recvBuf[i+1]:#02X} ")
 | 
					                    stdout.write(fmt"0x{recvBuf[i+1]:02X} ")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                stdout.write("\n")
 | 
					                stdout.write("\n")
 | 
				
			||||||
                stdout.flushFile()
 | 
					                stdout.flushFile()
 | 
				
			||||||
 | 
				
			|||||||
@ -67,7 +67,7 @@ proc midiEventPrinterProc() =
 | 
				
			|||||||
            break
 | 
					            break
 | 
				
			||||||
        elif event.size <= 3:
 | 
					        elif event.size <= 3:
 | 
				
			||||||
            for i in 0..<event.size:
 | 
					            for i in 0..<event.size:
 | 
				
			||||||
                stdout.write(fmt"{event.buffer[i]:#02X} ")
 | 
					                stdout.write(fmt"0x{event.buffer[i]:02X} ")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            stdout.write("\n")
 | 
					            stdout.write("\n")
 | 
				
			||||||
            stdout.flushFile()
 | 
					            stdout.flushFile()
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user