Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
jr1221 committed Jan 25, 2025
1 parent 89db8b6 commit a189aa7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
8 changes: 5 additions & 3 deletions Core/Src/adi_interaction.c
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,8 @@ void adbms_wake_isospi()
* @brief Wake the chip of every ADBMS6830 IC. Blocking wait about 1ms * NUM_CHIPS
*
*/
void adbms_wake_core() {
void adbms_wake_core()
{
for (uint8_t ic = 0; ic < NUM_CHIPS; ic++) {
adBmsCsLow();
adBmsCsHigh();
Expand Down Expand Up @@ -228,10 +229,11 @@ void read_adbms_data(cell_asic chips[NUM_CHIPS], uint8_t command[2], TYPE type,

// --- BEGIN WRITE COMMANDS ---

void soft_reset_chips(cell_asic chips[NUM_CHIPS]) {
void soft_reset_chips(cell_asic chips[NUM_CHIPS])
{
write_adbms_data(chips, SRST, Comm, NONE);
adbms_wake_core();
}
}

void write_config_regs(cell_asic chips[NUM_CHIPS])
{
Expand Down
3 changes: 2 additions & 1 deletion Core/Src/segment.c
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,8 @@ void segment_retrieve_debug_data(acc_data_t *bmsdata)
//segment_adc_comparison(bmsdata);
}

void segment_restart(acc_data_t *bmsdata) {
void segment_restart(acc_data_t *bmsdata)
{
soft_reset_chips(bmsdata->chips);
segment_init(bmsdata);
}
Expand Down

0 comments on commit a189aa7

Please sign in to comment.