File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -84,8 +84,10 @@ void AnalogIOHardware::SetNativeADCResolution() {
84
84
#else
85
85
_native_adc_resolution = 10 ;
86
86
#endif
87
+ #ifndef ARDUINO_ARCH_ESP8266
87
88
// Set the resolution (in bits) of the hardware's ADC
88
89
analogReadResolution (_native_adc_resolution);
90
+ #endif // ARDUINO_ARCH_ESP8266
89
91
}
90
92
91
93
/* ************************************************************************/
Original file line number Diff line number Diff line change @@ -304,7 +304,7 @@ void I2cHardware::RemoveMux() {
304
304
void I2cHardware::ClearMuxChannel () {
305
305
if (!_has_mux)
306
306
return ;
307
- _bus->beginTransmission (_mux_address_register);
307
+ _bus->beginTransmission (( uint8_t ) _mux_address_register);
308
308
if (_mux_max_channels == 4 )
309
309
_bus->write (0b0000 );
310
310
else if (_mux_max_channels == 8 )
@@ -322,7 +322,7 @@ void I2cHardware::ClearMuxChannel() {
322
322
void I2cHardware::SelectMuxChannel (uint32_t channel) {
323
323
if (channel > _mux_max_channels - 1 )
324
324
return ;
325
- _bus->beginTransmission (_mux_address_register);
325
+ _bus->beginTransmission (( uint8_t ) _mux_address_register);
326
326
_bus->write (1 << channel);
327
327
_bus->endTransmission ();
328
328
}
You can’t perform that action at this time.
0 commit comments