Commit 79fe4423 authored by Oleg Dzhimiev's avatar Oleg Dzhimiev

swappped gain_r <-> gain_b reg addresses

parent 7c1a8880
...@@ -815,7 +815,7 @@ class X393Sensor(object): ...@@ -815,7 +815,7 @@ class X393Sensor(object):
if sensorType == "PAR12": if sensorType == "PAR12":
if not gain_r is None: if not gain_r is None:
self.write_sensor_reg16 (num_sensor = num_sensor, self.write_sensor_reg16 (num_sensor = num_sensor,
reg_addr16 = 0x902c, reg_addr16 = 0x902d,
reg_data16 = gain_r) reg_data16 = gain_r)
if not gain_gr is None: if not gain_gr is None:
self.write_sensor_reg16 (num_sensor = num_sensor, self.write_sensor_reg16 (num_sensor = num_sensor,
...@@ -827,7 +827,7 @@ class X393Sensor(object): ...@@ -827,7 +827,7 @@ class X393Sensor(object):
reg_data16 = gain_gb) reg_data16 = gain_gb)
if not gain_b is None: if not gain_b is None:
self.write_sensor_reg16 (num_sensor = num_sensor, self.write_sensor_reg16 (num_sensor = num_sensor,
reg_addr16 = 0x902d, reg_addr16 = 0x902c,
reg_data16 = gain_b) reg_data16 = gain_b)
if not exposure is None: if not exposure is None:
self.write_sensor_reg16 (num_sensor = num_sensor, self.write_sensor_reg16 (num_sensor = num_sensor,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment