aboutsummaryrefslogtreecommitdiff
path: root/main/i2c.c
diff options
context:
space:
mode:
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;