diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-06-09 10:23:15 +0200 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-06-09 10:23:15 +0200 |
commit | f6ac5839b6b54713126d430d8a037138d6619dce (patch) | |
tree | 4ff12033575cdf17787f4ccd91e93222df93b20f /main/i2c.c | |
parent | 228f50b8cb0e2bbd579cc8ae4f0a08e6d34af66e (diff) |
clean up init functions
Diffstat (limited to 'main/i2c.c')
-rw-r--r-- | main/i2c.c | 12 |
1 files changed, 5 insertions, 7 deletions
@@ -1,14 +1,14 @@ -#include "i2c.h" -#include "init.h" - -#include "pb-mod.h" - +#include <FreeRTOS.h> +#include <task.h> #include <stdio.h> #include <stddef.h> #include <stdint.h> #include <pico/stdlib.h> #include <hardware/i2c.h> +#include "i2c.h" +#include "pb-mod.h" + uint8_t* scan_bus(uint8_t *array) { int ret; int i = 0; @@ -33,8 +33,6 @@ uint8_t* scan_bus(uint8_t *array) { void bus_task() { // scan bus for slaves // send updates at regular intervals - await_init(); - vTaskDelay(1000 / portTICK_PERIOD_MS); // int i = 0; |