# HG changeset patch # User heinrichsweikamp # Date 1425492117 -3600 # Node ID 416723c8ccd8186d0cb964093bb2d8a2fde783c9 # Parent db75dbeef5edf2e0d6db425ee0030aa952050c11 use single-byte hardware flag (again) diff -r db75dbeef5ed -r 416723c8ccd8 doc/ostc3_interface.odt Binary file doc/ostc3_interface.odt has changed diff -r db75dbeef5ed -r 416723c8ccd8 src/comm.asm --- a/src/comm.asm Wed Mar 04 16:26:48 2015 +0100 +++ b/src/comm.asm Wed Mar 04 19:01:57 2015 +0100 @@ -196,7 +196,6 @@ bra $-2 call disable_rs232 - bcf LEDr goto restart ;----------------------------------------------------------------------------- @@ -736,15 +735,6 @@ movwf TXREG1 call rs232_wait_tx ; wait for UART movff hardware_flag,TXREG1 - call rs232_wait_tx ; wait for UART - movlw 0x00 ; unused 1 - movwf TXREG1 - call rs232_wait_tx ; wait for UART - movlw 0x00 ; unused 2 - movwf TXREG1 - call rs232_wait_tx ; wait for UART - movlw 0x00 ; unused 3 - movwf TXREG1 bra comm_download_mode0 ; Done. ;----------------------------------------------------------------------------- diff -r db75dbeef5ed -r 416723c8ccd8 src/surfmode.asm --- a/src/surfmode.asm Wed Mar 04 16:26:48 2015 +0100 +++ b/src/surfmode.asm Wed Mar 04 19:01:57 2015 +0100 @@ -46,6 +46,9 @@ call speed_normal bcf no_sensor_int ; Normal pressure mode + bcf LEDg + bcf LEDr + clrf CCP1CON ; stop PWM bcf PORTC,2 ; Pull PWM output to GND call TFT_boot ; Initialize TFT (includes clear screen) @@ -98,8 +101,6 @@ bcf simulatormode_active ; Quit simulator mode (if active) bcf switch_left bcf switch_right - bcf LEDg - bcf LEDr ;---- Fade to standard surface view -------------------------------------- ; Wait 1 second