Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Sabramz committed Aug 11, 2024
1 parent 84dd1bb commit 6a62361
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Core/Inc/ams.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

#include "cmsis_os.h"

#define AMS_DCL_MSG 0x156 /* AMS MONITOR WATCHDOG*/
#define AMS_DCL_MSG 0x156 /* AMS MONITOR WATCHDOG*/

typedef struct {
osTimerId ams_monitor_timer;
Expand Down
1 change: 0 additions & 1 deletion Core/Inc/monitor.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ extern const osThreadAttr_t non_functional_data_attributes;

/* Arguments for the data collection thread */
typedef struct {
mpu_t *mpu;
pdu_t *pdu;
steeringio_t *wheel;
} data_collection_args_t;
Expand Down
1 change: 0 additions & 1 deletion Core/Src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,6 @@ int main(void)
assert(non_functional_data_thead);

data_collection_args_t* data_args = malloc(sizeof(data_collection_args_t));
data_args->mpu = mpu;
data_args->pdu = pdu;
data_args->wheel = wheel;
data_collection_thread = osThreadNew(vDataCollection, data_args, &data_collection_attributes);
Expand Down
2 changes: 1 addition & 1 deletion Core/Src/monitor.c
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ void steeringio_monitor(steeringio_t *wheel)
osThreadId_t data_collection_thread;
const osThreadAttr_t data_collection_attributes = {
.name = "DataCollection",
.stack_size = 32 * 32,
.stack_size = 1500,
.priority = (osPriority_t)osPriorityBelowNormal,
};

Expand Down
2 changes: 1 addition & 1 deletion Core/Src/steeringio.c
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ void steeringio_update(steeringio_t *wheel, uint8_t button_data)
malloc(sizeof(debounce_cb_args_t));
debounce_args->wheel = wheel;
debounce_args->button = i;

if (wheel->raw_buttons[i])
debounce(wheel->raw_buttons[i],
wheel->debounce_timers[i],
Expand Down

0 comments on commit 6a62361

Please sign in to comment.