Remove invisible runtime assertions
This commit is contained in:
@@ -2,7 +2,6 @@
|
||||
#include "bus/i2c.h"
|
||||
|
||||
#include <avr/io.h>
|
||||
#include <assert.h>
|
||||
|
||||
#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
|
||||
|
||||
Reference in New Issue
Block a user