mirror of https://github.com/ArduPilot/ardupilot
Tools: RCInput_UART PIC firmware: remove code out of place
That code for serial configuration was not really setting TXSTA register, since the selected bank is 2. Looking at the datasheet, it seems that we were actually messing with a register named VRCON (full name "VOLTAGE REFERENCE CONTROL REGISTER"). This is probably a leftover from a copy/paste, since the same is done (in the right place) previously.
This commit is contained in:
parent
2a7e4baa7d
commit
6a8420aa48
|
@ -258,9 +258,6 @@ Main:
|
||||||
movwf WPUB
|
movwf WPUB
|
||||||
movwf IOCB
|
movwf IOCB
|
||||||
|
|
||||||
movlw (1<<TXEN|1<<BRGH)
|
|
||||||
movwf TXSTA
|
|
||||||
|
|
||||||
; bank 0
|
; bank 0
|
||||||
clrf STATUS
|
clrf STATUS
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue