@@ -276,8 +276,8 @@ class SfeAS7331Driver
276276  public: 
277277    //  Default initialization values based on the datasheet. See SfeAS7331Driver::setDefaultSettings for
278278    //  an explanation of the values.
279-     SfeAS7331Driver (uint8_t  address =  kDefaultAS7331Addr )
280-         : _devAddress{address},  _theBus{nullptr }, _breakTime{25 }, _numEdges{1 }, _readyPinMode{false },
279+     SfeAS7331Driver ()
280+         : _theBus{nullptr }, _breakTime{25 }, _numEdges{1 }, _readyPinMode{false },
281281          _dividerEnabled{false }, _tempConvEnabled{true }, _indexMode{true }, _standbyState{false }, _startState{false },
282282          _powerDownEnableState{true }, _opMode{DEVICE_MODE_CFG}, _sensorGain{GAIN_2}, _cclk{CCLK_1_024_MHZ},
283283          _mmode{MEAS_MODE_CMD}, _conversionTime{TIME_64MS}, _dividerRange{DIV_2}, _uva{0 .0f }, _uvb{0 .0f }, _uvc{0 .0f },
@@ -287,10 +287,9 @@ class SfeAS7331Driver
287287
288288    // / @brief This method is called to initialize the AS7331 device through the
289289    // / specified bus.
290-     // / @param deviceAddress I2C address for the device.
291290    // / @param theBus Pointer to the bus object.
292291    // / @return True if successful, false if it fails.
293-     bool  begin (const   uint8_t  &deviceAddress =  kDefaultAS7331Addr ,  sfeTkIBus *theBus = nullptr );
292+     bool  begin (sfeTkIBus *theBus = nullptr );
294293
295294    // / @brief Requests the device ID from the sensor.
296295    // / @return The device ID of the sensor.
@@ -300,14 +299,6 @@ class SfeAS7331Driver
300299    // / @param theBus Bus to set as the communication devie.
301300    void  setCommunicationBus (sfeTkIBus *theBus);
302301
303-     // / @brief Sets the address that the bus uses to communicate with the sensor.
304-     // / @param deviceAddress Device address to use.
305-     void  setDeviceAddress (const  uint8_t  &deviceAddress);
306- 
307-     // / @brief Gets the currently configured device address.
308-     // / @return device address.
309-     uint8_t  getDeviceAddress (void );
310- 
311302    // / @brief Helper class that sets up the sensor and state in the POR
312303    // / configuration.
313304    // / @param runSoftReset Flag that runs the soft reset function to reset the
@@ -660,7 +651,6 @@ class SfeAS7331Driver
660651    void  setDefaultSettings (void );
661652
662653    sfeTkIBus *_theBus;  //  Pointer to bus device.
663-     uint8_t  _devAddress; //  Device's I2C address.
664654
665655    uint8_t  _breakTime; //  Local config value. Value is in us/8. EX: _breakTime = 20 means 20*8 = 160us.
666656    uint8_t  _numEdges;  //  Local config value. Edges seen on SYN pin before ending conversion in SYND mode.
0 commit comments