2017年度の製作を開始します。
Dependencies: BufferedSoftSerial2 SDFileSystem-RTOS mbed mbed-rtos INA226_ver1
Fork of keiki2016ver5 by
Diff: main.cpp
- Branch:
- cadence
- Revision:
- 67:9d2eb6793464
- Parent:
- 66:1ffafa1c4a87
- Parent:
- 65:075118165355
- Child:
- 68:ed8ffcb8c49a
--- a/main.cpp Thu Jun 15 08:30:38 2017 +0000 +++ b/main.cpp Thu Jun 15 08:33:31 2017 +0000 @@ -358,18 +358,20 @@ } else { write_datas_index++; } -// char sbuf[128]; -// int p=0; - twe.printf("con,"); -// p = sprintf(sbuf,"con,"); + + char sbuf[128]; + int p=0; +// twe.printf("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]); -// + +// pc.printf("%i ",soudaDatas[i]); +// twe.printf("%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]); +// twe.printf("%i\n",soudaDatas[i]); + p += sprintf(sbuf+p,"%i\n",soudaDatas[i]); } // twe.printf("%s",sbuf); //twe.printf("con,%s\n",soudaDatas);