From 2543ac1336d60a4470a33343be370da8c232d03e Mon Sep 17 00:00:00 2001 From: damage Date: Thu, 22 May 2025 20:56:29 +0200 Subject: [PATCH] sleep if not buzy (end of loop) --- controller/controller.c | 1 - 1 file changed, 1 deletion(-) diff --git a/controller/controller.c b/controller/controller.c index d18d2c5..5cc0703 100644 --- a/controller/controller.c +++ b/controller/controller.c @@ -158,7 +158,6 @@ void* i2cHandler(void* arg) { i2cResponse = i2c_smbus_read_byte_data(i2c, 0); if (i2cResponse < 0) { _log("I2C read from device %s failed: %s (%d)\n", devices[i].name, strerror(errno), errno); - usleep(100 * 1000); continue; }