Rev 1824 | Rev 1828 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 1824 | Rev 1827 | ||
|---|---|---|---|
| Line 227... | Line 227... | ||
| 227 | _delay_ms(1); |
227 | _delay_ms(1); |
| 228 | j=0; |
228 | j=0; |
| 229 | msg.Header.Command++; |
229 | msg.Header.Command++; |
| 230 | } |
230 | } |
| 231 | 231 | ||
| 232 | if (j>0) |
- | |
| 233 | { |
- | |
| 234 |
|
232 | /* Msg command kept from for loop, but increase 16 to send ProntoEnd */ |
| 235 | msg.Header.Command+=16; |
233 | msg.Header.Command+=16; |
| 236 | msg.Length = j; |
234 | msg.Length = j; |
| 237 |
|
235 | /* data kept from loop, if any */ |
| 238 | /* buffers will be filled when sending more than 2-3 messages, so retry until sent */ |
236 | /* buffers will be filled when sending more than 2-3 messages, so retry until sent */ |
| 239 | while (StdCan_Put(&msg) != StdCan_Ret_OK) {} |
237 | while (StdCan_Put(&msg) != StdCan_Ret_OK) {} |
| 240 | _delay_ms(1); |
238 | _delay_ms(1); |
| 241 | } |
- | |
| 242 | } |
239 | } |
| 243 | #endif |
240 | #endif |
| 244 | 241 | ||
| 245 | 242 | ||
| 246 | #if IR_RX_ENABLE==1 |
243 | #if IR_RX_ENABLE==1 |