2018年度計器mbed用プログラム
Dependencies: BufferedSoftSerial2 INA226_ver1 mbed-rtos mbed SDFileSystem-RTOS
Fork of keiki2017 by
Revision 65:075118165355, committed 2017-06-15
- Comitter:
- tsumagari
- Date:
- Thu Jun 15 05:01:39 2017 +0000
- Branch:
- cadence
- Parent:
- 64:2de7ea84d39a
- Child:
- 67:9d2eb6793464
- Child:
- 69:1f892421d694
- Commit message:
- ?????????twe?????????????
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Wed Jun 14 11:29:52 2017 +0000 +++ b/main.cpp Thu Jun 15 05:01:39 2017 +0000 @@ -363,15 +363,15 @@ char sbuf[128]; int p=0; // twe.printf("con,"); - p = sprintf(sbuf,"con,"); + p += sprintf(sbuf,"con,"); for(int i = 0; i <YOKUTAN_DATAS_NUM ; i++) { // pc.printf("%i ",soudaDatas[i]); // twe.printf("%i,",soudaDatas[i]); - p = sprintf(sbuf+p,"%i,",soudaDatas[i]); + p += sprintf(sbuf+p,"%i,",soudaDatas[i]); if(i == YOKUTAN_DATAS_NUM - 1) // twe.printf("%i\n",soudaDatas[i]); - p = sprintf(sbuf+p,"%i\n",soudaDatas[i]); + p += sprintf(sbuf+p,"%i\n",soudaDatas[i]); } twe.printf("%s",sbuf); twe.printf("inp,%d,%i,%d,%i\n",soudaDatas[YOKUTAN_DATAS_NUM],soudaDatas[sizeof(int) + YOKUTAN_DATAS_NUM + 2],(int)soudaDatas[SOUDA_DATAS_NUM - sizeof(int) - 3],soudaDatas[SOUDA_DATAS_NUM-1]);