- Timestamp:
- 02/14/11 15:43:58 (15 months ago)
- Files:
-
- 1 modified
-
driver/wwsr.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
driver/wwsr.c
r8 r15 541 541 printf("\n"); 542 542 543 544 //The only difference is the order of words in printf. This changes the description of values in graphs. Values are processed correctly anyway. 543 545 if (postprocess==1) { 544 546 printf ("For postprocessing\n"); 545 547 printf ("Interval\t%d min\n", buf5.delay1); 546 printf (" Humidity indoor\t%d %%\n", buf5.hindoor);547 printf (" Humidity outdoor\t%d %%\n", buf5.houtdoor);548 printf ("Indoor humidity\t%d %%\n", buf5.hindoor); 549 printf ("Outdoor humidity\t%d %%\n", buf5.houtdoor); 548 550 if ((buf2[243] & 128) > 0) { 549 printf (" Temperature indoor\t-%d.%d C\n", buf5.tindoor / 10, abs(buf5.tindoor % 10));551 printf ("Indoor temperature\t-%d.%d C\n", buf5.tindoor / 10, abs(buf5.tindoor % 10)); 550 552 } else { 551 printf (" Temperature indoor\t%d.%d C\n", buf5.tindoor / 10, abs(buf5.tindoor % 10));553 printf ("Indoor temperature\t%d.%d C\n", buf5.tindoor / 10, abs(buf5.tindoor % 10)); 552 554 }; 553 555 if ((buf2[246] & 128) > 0) { 554 printf (" Temperature outdoor\t-%d.%d C\n", buf5.toutdoor / 10, abs(buf5.toutdoor % 10));556 printf ("Outdoor temperature\t-%d.%d C\n", buf5.toutdoor / 10, abs(buf5.toutdoor % 10)); 555 557 } else { 556 printf (" Temperature outdoor\t%d.%d C\n", buf5.toutdoor / 10, abs(buf5.toutdoor % 10));558 printf ("Outdoor temperature\t%d.%d C\n", buf5.toutdoor / 10, abs(buf5.toutdoor % 10)); 557 559 }; 558 560 printf ("Wind speed\t%d.%d m/s\n", buf5.swind / 10, abs(buf5.swind %10)); … … 565 567 } 566 568 printf ("Rain total\t%.1f mm\n", (double)(buf5.rain2 + buf5.rain1*256) * 0.3); 567 printf (" Pressure air\t%d.%d hPa\n", buf5.pressure / 10, buf5.pressure % 10);569 printf ("Air pressure\t%d.%d hPa\n", buf5.pressure / 10, buf5.pressure % 10); 568 570 printf ("\n"); 569 571 }