From 40f039dff91ce486fb8b82e5d6fff0ced3d96bee Mon Sep 17 00:00:00 2001 From: Leon Krieg Date: Wed, 4 Sep 2024 02:56:58 +0200 Subject: [PATCH] Remove invisible runtime assertions --- src/bus/i2c.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/bus/i2c.c b/src/bus/i2c.c index 988b2f3..931981d 100644 --- a/src/bus/i2c.c +++ b/src/bus/i2c.c @@ -2,7 +2,6 @@ #include "bus/i2c.h" #include -#include #define TW_START 0x08 #define TW_REP_START 0x10 @@ -35,8 +34,6 @@ int I2C_Start(unsigned char addr, unsigned char mode) { unsigned int status; - assert(mode == 0 || mode == 1); - // Send start condition TWCR = (1 << TWEN) // Enable TWI