Number serial from 1 to match settings
This commit is contained in:
		@@ -61,7 +61,7 @@ uint8_t _getc();
 | 
			
		||||
#define SHARED_SERVOS HAS_SERVOS
 | 
			
		||||
 | 
			
		||||
extern MSerialT usb_serial;
 | 
			
		||||
#define MYSERIAL0 usb_serial
 | 
			
		||||
#define MYSERIAL1 usb_serial
 | 
			
		||||
 | 
			
		||||
#define ST7920_DELAY_1 DELAY_NS(600)
 | 
			
		||||
#define ST7920_DELAY_2 DELAY_NS(750)
 | 
			
		||||
 
 | 
			
		||||
@@ -115,4 +115,4 @@ struct HalSerial {
 | 
			
		||||
  volatile bool host_connected;
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
typedef Serial0Type<HalSerial> MSerialT;
 | 
			
		||||
typedef Serial1Class<HalSerial> MSerialT;
 | 
			
		||||
 
 | 
			
		||||
@@ -105,8 +105,8 @@ int main() {
 | 
			
		||||
  std::thread write_serial (write_serial_thread);
 | 
			
		||||
  std::thread read_serial (read_serial_thread);
 | 
			
		||||
 | 
			
		||||
  #ifdef MYSERIAL0
 | 
			
		||||
    MYSERIAL0.begin(BAUDRATE);
 | 
			
		||||
  #ifdef MYSERIAL1
 | 
			
		||||
    MYSERIAL1.begin(BAUDRATE);
 | 
			
		||||
    SERIAL_ECHOLNPGM("x86_64 Initialized");
 | 
			
		||||
    SERIAL_FLUSHTX();
 | 
			
		||||
  #endif
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user