richardgedwards / guava

MIT License
1 stars 0 forks source link

Remove try block #5

Closed rkedward closed 3 years ago

rkedward commented 3 years ago

In ICM90948.cpp line 43

// Method 1: Pass-through mode - use primary I2C bus to communicate with magnetometer
    configI2CAuxilary(PASSTHROUGH_MODE);
    try {AK09916 mag(i2c);} catch(const std::runtime_error &e) {std::cerr << e.what() << std::endl;}

    configI2CAuxilary(MASTER_MODE);

The try block with cause the program to continue. This isn't likely the program flow that we need.