Save and restore gain in a less stupid manner
Save and restore gain in a less stupid manner

Add get_gain() which returns the actual gain value that set_gain() expects.

Just saving the self.GAIN to a variable then restoring it doesn't necessarily work
as the actual sending of the gain value to the chip isn't guaranteed to happen after
the variable is restored.

tatobari/hx711py