DC11 serial port: 38k4

This commit is contained in:
folkert van heusden 2024-05-11 20:55:57 +02:00
parent 936007b2f2
commit baa86146c5
Signed by untrusted user who does not match committer: folkert
GPG key ID: 6B6455EDFEED3BD1
2 changed files with 3 additions and 3 deletions

View file

@ -212,12 +212,12 @@ void start_network(console *const c)
Serial.printf("* Init TTY (on DC11), baudrate: %d bps, RX: %d, TX: %d", bitrate, TTY_SERIAL_RX, TTY_SERIAL_TX);
Serial.println(F(""));
dc11_->set_serial(bitrate, TTY_SERIAL_RX, TTY_SERIAL_TX);
dc11_->set_serial(38400 /* bitrate TODO */, TTY_SERIAL_RX, TTY_SERIAL_TX);
#endif
b->add_DC11(dc11_);
Serial.println(F("* Starting (NTP-) clock"));
ntp_ = new ntp("188.212.113.203");
ntp_ = new ntp("188.212.113.203"); // TODO configurable
ntp_->begin();
set_clock_reference(ntp_);

View file

@ -602,7 +602,7 @@ int main(int argc, char *argv[])
dc11 *dc11_ = new dc11(1100, b);
if (dc11_device.has_value()) {
DOLOG(info, false, "Configuring DC11 device for serial port on %s", dc11_device.value().c_str());
dc11_->set_serial(115200, dc11_device.value());
dc11_->set_serial(38400, dc11_device.value());
}
b->add_DC11(dc11_);