req
Dependents: BMS_BMUCore_Max_DummyData BMS_BMUCore_Max
Fork of LTC6804 by
Diff: SPI_Parser.cpp
- Revision:
- 6:47ffbe9ee110
- Parent:
- 5:324a19dcfdec
- Child:
- 9:1c94bbb97eaa
--- a/SPI_Parser.cpp Sun Jul 23 10:33:23 2017 +0000 +++ b/SPI_Parser.cpp Sat Aug 19 20:45:03 2017 +0000 @@ -90,7 +90,7 @@ received_pec = (cell_data[data_counter] << 8) + cell_data[data_counter + 1]; data_pec = pec15_calc(BYT_IN_REG, &cell_data[current_cmu*NUM_RX_BYT]); if (received_pec != data_pec) { - cout << " PEC ERROR " << endl; + if (DEBUG) printf(" PEC ERROR \r\n"); pec_error--;//pec_error=-1; } data_counter = data_counter + 2;