Commit ee69e9fa authored by Bjarki Arge Andreasen's avatar Bjarki Arge Andreasen Committed by Alberto Escolar
Browse files

drivers: sensor: voltage_divider: revert patch



A patch was added to the voltage divider to handle an erroneous
negative voltage reading for the nrfx_saadc which could return
negative voltages even though the ADC mode was single ended.

This has now been patched in the ADC driver.

Signed-off-by: default avatarBjarki Arge Andreasen <bjarki.andreasen@nordicsemi.no>
parent 940daa61
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -59,9 +59,6 @@ static int get(const struct device *dev, enum sensor_channel chan, struct sensor

	if (config->voltage.port.channel_cfg.differential) {
		raw_val = (int16_t)data->raw;
	} else if (config->voltage.port.resolution < 16) {
		/* Can be removed when issue #71119 is resolved */
		raw_val = (int16_t)data->raw;
	} else {
		raw_val = data->raw;
	}