diff options
| author | Keith Packard <keithp@keithp.com> | 2012-12-28 16:34:48 -0800 | 
|---|---|---|
| committer | Keith Packard <keithp@keithp.com> | 2012-12-28 16:34:48 -0800 | 
| commit | daf8776f8646ba187f1a17f7aae797503bed3f2a (patch) | |
| tree | 6856f0fa4eeed4abc350ebb77b8bcea1cb24e2fd /micropeak/MicroSerial.java | |
| parent | 9da9adc2718928de2af65a68cddbcc636cc3e9e8 (diff) | |
Lots more work on the MicroPeak application
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'micropeak/MicroSerial.java')
| -rw-r--r-- | micropeak/MicroSerial.java | 5 | 
1 files changed, 4 insertions, 1 deletions
| diff --git a/micropeak/MicroSerial.java b/micropeak/MicroSerial.java index afe55532..8546276e 100644 --- a/micropeak/MicroSerial.java +++ b/micropeak/MicroSerial.java @@ -24,7 +24,10 @@ public class MicroSerial extends InputStream {  	SWIGTYPE_p_altos_file	file;  	public int read() { -		return libaltos.altos_getchar(file, 0); +		int	c = libaltos.altos_getchar(file, 0); +		if (MicroPreferences.serial_debug) +			System.out.printf("%c", c); +		return c;  	}  	public void close() { | 
