BMS
Revision 7:5f7232441106, committed 2018-01-17
- Comitter:
- roger5641
- Date:
- Wed Jan 17 08:28:06 2018 +0000
- Parent:
- 6:c2ab60b20d11
- Child:
- 8:404c4d795fde
- Commit message:
- check open wire test; 20 command some problems
Changed in this revision
| bms_master.lib | Show annotated file Show diff for this revision Revisions of this file |
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/bms_master.lib Wed Dec 20 06:40:27 2017 +0000 +++ b/bms_master.lib Wed Jan 17 08:28:06 2018 +0000 @@ -1,1 +1,1 @@ -https://os.mbed.com/users/roger5641/code/bms_master/#9f8d97b7fb58 +https://os.mbed.com/users/roger5641/code/bms_master/#2561f59cd3dd
--- 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");
}
}
}

