Remove invisible runtime assertions

This commit is contained in:
2024-09-04 02:56:58 +02:00
parent c66e15dcc9
commit 40f039dff9

View File

@@ -2,7 +2,6 @@
#include "bus/i2c.h" #include "bus/i2c.h"
#include <avr/io.h> #include <avr/io.h>
#include <assert.h>
#define TW_START 0x08 #define TW_START 0x08
#define TW_REP_START 0x10 #define TW_REP_START 0x10
@@ -35,8 +34,6 @@ int I2C_Start(unsigned char addr, unsigned char mode)
{ {
unsigned int status; unsigned int status;
assert(mode == 0 || mode == 1);
// Send start condition // Send start condition
TWCR = (1 << TWEN) // Enable TWI TWCR = (1 << TWEN) // Enable TWI