Check chip enable when loading chip configs.
In read-register, write-register, and read-adc, add a check where if a chip is disabled, do not load the chip config.
For example:
if (chip_configs[ichip]["enable"] == 0)
continue;