diff --git a/arduino/Makefile b/arduino/Makefile index 5921ff6..7086bf2 100644 --- a/arduino/Makefile +++ b/arduino/Makefile @@ -34,7 +34,7 @@ upload: $(name).hex $(name).lst .PHONY: screen screen: upload - minicom -D $(SERIAL) -b 2000000 + minicom -D $(SERIAL) -b 500000 %.hex: $(dir_build)/%.elf $(OBJCOPY) -O ihex -R .eeprom $< $@ diff --git a/arduino/source/main.c b/arduino/source/main.c index 5e7e990..27ab2f5 100644 --- a/arduino/source/main.c +++ b/arduino/source/main.c @@ -188,7 +188,7 @@ int main(void) //PCMSK1 = _BV(PCINT9); // Initialize the program - serial_init(2000000); + serial_init(500000); pinmode(PIN_MOSFET, OUTPUT); writepin(PIN_MOSFET, LOW); cart_init(); diff --git a/client/source/main.c b/client/source/main.c index bad04d6..c82d275 100644 --- a/client/source/main.c +++ b/client/source/main.c @@ -55,7 +55,7 @@ int main(int argc, char *argv[]) puts(sp_get_port_name(port)); if (sp_open(port, SP_MODE_READ_WRITE) != SP_OK || - sp_set_baudrate(port, 2000000) != SP_OK || + sp_set_baudrate(port, 500000) != SP_OK || sp_set_flowcontrol(port, SP_FLOWCONTROL_NONE) != SP_OK) { serial_error("Failed to open port"); return 1;