Rev 35 | Rev 37 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 35 | Rev 36 | ||
---|---|---|---|
Line 485... | Line 485... | ||
485 | Data.Sensor[i].ReadingL); |
485 | Data.Sensor[i].ReadingL); |
486 | 486 | ||
487 | char outbuff[100]; |
487 | char outbuff[100]; |
488 | int cnt = small_sprintf(outbuff, "%d,%d,%d\r\n", addr, inst, |
488 | int cnt = small_sprintf(outbuff, "%d,%d,%d\r\n", addr, inst, |
489 | reading); |
489 | reading); |
490 | int i; |
490 | int ck; |
491 | for (i = 0; i < cnt; i++) |
491 | for (ck = 0; ck < cnt; ck++) |
492 | 492 | ||
493 | { |
493 | { |
494 | PutCharSerial(&uc3, outbuff[i]); |
494 | PutCharSerial(&uc3, outbuff[ck]); |
495 | } |
495 | } |
496 | DataVal = ConvPLX(Data.Sensor[i].ReadingH, |
496 | DataVal = ConvPLX(Data.Sensor[i].ReadingH, |
497 | Data.Sensor[i].ReadingL); |
497 | Data.Sensor[i].ReadingL); |
498 | if (DataVal > Max[i]) |
498 | if (DataVal > Max[i]) |
499 | { |
499 | { |