![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
BMS
Diff: main.cpp
- Revision:
- 7:5f7232441106
- Parent:
- 6:c2ab60b20d11
- Child:
- 8:404c4d795fde
diff -r c2ab60b20d11 -r 5f7232441106 main.cpp --- a/main.cpp Wed Dec 20 06:40:27 2017 +0000 +++ b/main.cpp Wed Jan 17 08:28:06 2018 +0000 @@ -72,7 +72,7 @@ configure the software. ***********************************************************/ -const uint8_t TOTAL_IC = 1;//!<number of ICs in the daisy chain +const uint8_t TOTAL_IC = 2;//!<number of ICs in the daisy chain //ADC Command Configurations const uint8_t ADC_OPT = ADC_OPT_DISABLED; // See LTC6811_daisy.h for Options @@ -124,7 +124,7 @@ spi.frequency(1000000); // 1MHz clock rate led1 = 1; - led2 = 1; + led2 = 0; led3 = 1; led4 = 1; led5 = 1; @@ -487,7 +487,7 @@ { pc.printf("No Opens Detected on IC: "); pc.printf("%d",current_ic+1); - pc.printf("\r"); + pc.printf("\n\r"); } else { @@ -499,6 +499,7 @@ pc.printf("%d",current_ic + 1); pc.printf(" Channel: "); pc.printf("%d",cell); + pc.printf("\n\r"); } } }