Skip to content

Commit

Permalink
fixed CS pin num (#74)
Browse files Browse the repository at this point in the history
* fixed CS pin num

* Updating submodule to build

---------

Co-authored-by: Dylan Donahue <[email protected]>
Co-authored-by: nwdepatie <[email protected]>
  • Loading branch information
3 people authored Jan 26, 2024
1 parent d6649ae commit 742be1d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Core/Src/segment.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "main.h"
#include <math.h>

#define THERM_WAIT_TIME 500 /* ms */
Expand Down Expand Up @@ -56,7 +57,7 @@ void segment_init()
printf("Initializing Segments...");

ltc68041 = malloc(sizeof(ltc_config));
LTC6804_initialize(ltc68041, &hspi1, GPIOA, 4);
LTC6804_initialize(ltc68041, &hspi1, GPIOA, SPI_1_CS_Pin);

pull_chip_configuration();

Expand Down

0 comments on commit 742be1d

Please sign in to comment.