AP_InertialSensor: removed assert calls
these waste flash space and do not do us any good
This commit is contained in:
parent
b9df270df6
commit
dcf6bcea6e
@ -774,7 +774,6 @@ void AP_InertialSensor::_start_backends()
|
||||
/* Find the N instance of the backend that has already been successfully detected */
|
||||
AP_InertialSensor_Backend *AP_InertialSensor::_find_backend(int16_t backend_id, uint8_t instance)
|
||||
{
|
||||
assert(_backends_detected);
|
||||
uint8_t found = 0;
|
||||
|
||||
for (uint8_t i = 0; i < _backend_count; i++) {
|
||||
|
@ -1049,8 +1049,6 @@ int AP_Invensense_AuxiliaryBusSlave::_set_passthrough(uint8_t reg, uint8_t size,
|
||||
int AP_Invensense_AuxiliaryBusSlave::passthrough_read(uint8_t reg, uint8_t *buf,
|
||||
uint8_t size)
|
||||
{
|
||||
assert(buf);
|
||||
|
||||
if (_registered) {
|
||||
hal.console->printf("Error: can't passthrough when slave is already configured\n");
|
||||
return -1;
|
||||
|
@ -772,8 +772,6 @@ int AP_Invensensev2_AuxiliaryBusSlave::_set_passthrough(uint8_t reg, uint8_t siz
|
||||
int AP_Invensensev2_AuxiliaryBusSlave::passthrough_read(uint8_t reg, uint8_t *buf,
|
||||
uint8_t size)
|
||||
{
|
||||
assert(buf);
|
||||
|
||||
if (_registered) {
|
||||
hal.console->printf("Error: can't passthrough when slave is already configured\n");
|
||||
return -1;
|
||||
|
@ -85,9 +85,6 @@ AuxiliaryBusSlave *AuxiliaryBus::request_next_slave(uint8_t addr)
|
||||
int AuxiliaryBus::register_periodic_read(AuxiliaryBusSlave *slave, uint8_t reg,
|
||||
uint8_t size)
|
||||
{
|
||||
assert(slave->_instance == _n_slaves);
|
||||
assert(_n_slaves < _max_slaves);
|
||||
|
||||
int r = _configure_periodic_read(slave, reg, size);
|
||||
if (r < 0)
|
||||
return r;
|
||||
|
Loading…
Reference in New Issue
Block a user