Subversion Repositories NaviCtrl

Compare Revisions

Ignore whitespace Rev 819 → Rev 820

/trunk/uart1.c
766,12 → 766,12
break;
 
case 'o': // request for navigation information
UART1_NaviData_Interval = (u32) SerialMsg.pData[0] * 10; // PC sends: 10 = 100ms
if(SerialMsg.DataLen > 2) UART1_NaviData_MaxBytes = SerialMsg.pData[1] * 256 + SerialMsg.pData[2]; // PC sends: 4 & 0 = 1024 Bytes per second
UART1_NaviData_Interval = (u32) SerialMsg.pData[0] * 10; // PC sends: 10 = 100ms or 20 = 200 (since 2.19)
if(SerialMsg.DataLen > 2) UART1_NaviData_MaxBytes = SerialMsg.pData[1] * 256 + SerialMsg.pData[2]; // PC sends: 4 & 0 = 1024 Bytes per second and 150 if TX-Limiting is active
else UART1_NaviData_MaxBytes = 0;
if(UART1_NaviData_Interval > 0) UART1_Request_NaviData = TRUE;
UART1_AboTimeOut = SetDelay(ABO_TIMEOUT);
if(UART1_NaviData_Interval < 100) UART1_NaviData_Interval = 100;
if(UART1_NaviData_Interval && UART1_NaviData_Interval < 100) UART1_NaviData_Interval = 100;
break;
 
case 'v': // request for version info