aboutsummaryrefslogtreecommitdiff
path: root/main/i2c.c
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-06-09 10:23:15 +0200
committerLoek Le Blansch <loek@pipeframe.xyz>2024-06-09 10:23:15 +0200
commitf6ac5839b6b54713126d430d8a037138d6619dce (patch)
tree4ff12033575cdf17787f4ccd91e93222df93b20f /main/i2c.c
parent228f50b8cb0e2bbd579cc8ae4f0a08e6d34af66e (diff)
clean up init functions
Diffstat (limited to 'main/i2c.c')
-rw-r--r--main/i2c.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/main/i2c.c b/main/i2c.c
index 43d17bf..5db5b61 100644
--- a/main/i2c.c
+++ b/main/i2c.c
@@ -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;