From c00f589d6a1636f3b74be0b27becbca684da8cb7 Mon Sep 17 00:00:00 2001 From: ThomasintAnker Date: Fri, 24 May 2024 12:33:53 +0200 Subject: FIXED HARDFAULT --- main/i2c.c | 4 ---- main/main.c | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/main/i2c.c b/main/i2c.c index c1f11ea..31a1454 100644 --- a/main/i2c.c +++ b/main/i2c.c @@ -8,8 +8,6 @@ #include void init_i2c() { - await_init(); - i2c_init(I2C_PORT, 100 * 1000); // currently at 100kHz // Initialize I2C pins - sda(16), scl(17) @@ -70,8 +68,6 @@ void bus_task() { // send updates at regular intervals await_init(); printf("Bus task!"); - - return; int i = 0; uint8_t found[MAX_SLAVES]; diff --git a/main/main.c b/main/main.c index 22287b3..19dd3cd 100644 --- a/main/main.c +++ b/main/main.c @@ -25,7 +25,7 @@ int main() { xTaskCreate((TaskFunction_t) blink_task, "blink", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY + 2, NULL); //xTaskCreate((TaskFunction_t) serve_task, "serve", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY + 2, NULL); - //xTaskCreate((TaskFunction_t) bus_task, "bus", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY + 2, NULL); + xTaskCreate((TaskFunction_t) bus_task, "bus", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY + 2, NULL); vTaskStartScheduler(); } -- cgit v1.2.3