降低串口波特率

This commit is contained in:
大石头 2017-03-16 19:46:25 +08:00
parent a9c2d5356d
commit 5a695d5f82
2 changed files with 3 additions and 3 deletions

View File

@ -98,7 +98,7 @@ bool ACZero::Wait(int usDelay) const
if (ms < 0 && ms > 40) return false;
// 4号继电器作为输出信号
static OutputPort sign(PB14);
static OutputPort sign(PA5);
sign != sign;
// 计算下一次零点什么时候到来

View File

@ -57,9 +57,9 @@ void SerialPort::Set(COM index, int baudRate)
if (_baudRate <= 0)
{
int clock = Sys.Clock;
if (clock >= 72)
if (clock > 72)
_baudRate = 2048000;
else if (clock >= 36)
else if (clock > 36)
_baudRate = 1024000;
else
_baudRate = 115200;