LoadCell_STM32_SDRAM_v1
Dependencies: BSP_DISCO_F746NG DISCO-F746NG_SDRAMBlockDevice LCD_DISCO_F746NG mbed
Fork of LoadCell_STM32 by
Diff: main.cpp
- Revision:
- 3:22b1719c2b92
- Parent:
- 2:386f65563144
- Child:
- 4:5fe86291ba03
--- a/main.cpp Fri Feb 23 20:28:44 2018 +0000 +++ b/main.cpp Sat Feb 24 11:26:50 2018 +0000 @@ -88,7 +88,11 @@ else if((strcmp(Cmd,"setpoints")==0)&&(n==2)) { // Allocate more or less data space NoOfPoints=(uint32_t) strtol(Arg,NULL,10); - insertArray(&Data,NoOfPoints); + pc1.printf("Old Data size is %u New NoOfPOints = %u \r\n",Data.size,NoOfPoints); + //freeArray(&Data); + //initArray(&Data,NoOfPoints); + insertArray2(&Data,NoOfPoints); + pc1.printf("New Array size is %u \r\n",Data.size); } // setavg: Adjust average amount in samples