|
@ -55,7 +55,7 @@ int main(int argc, char *argv[]) |
|
|
puts(sp_get_port_name(port)); |
|
|
puts(sp_get_port_name(port)); |
|
|
|
|
|
|
|
|
if (sp_open(port, SP_MODE_READ_WRITE) != SP_OK || |
|
|
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) { |
|
|
sp_set_flowcontrol(port, SP_FLOWCONTROL_NONE) != SP_OK) { |
|
|
serial_error("Failed to open port"); |
|
|
serial_error("Failed to open port"); |
|
|
return 1; |
|
|
return 1; |
|
|