Custom light output and gamma

When i was using the cwww platform I could use gamma_correct: 0.

Can someone give me a pointer on how in a custom light output I can set the gamma adjustment to 0.

I tried 'traits.set_gamma_correct(0); but that doesn’t work as its not a light trait.

If it helps I am using some fairly standard CWWW lights that are available in Australia, but unlike the existing CWWW platform, these have inbuilt gamma adjustment on the pcb, and in addition they use one pin for CW (1) to WW (0) and a second pin controls the brightness of all LEDs.
I had it all working well, but the brightness changes the state->current_values_as_cwww floats returned.

To confirm its gamma, I set both the Color temp pins and the brightness as two separate mono lights and used the two standard brightness slider to change the colour and brightness.

Any help is appreciated.

So i had a tinker for a few days. Ended up setting
state->set_gamma_correct(0); in the void write_state..... I then manually removed the brightness from CW and WW valies and rebuilt them.

I threw it up on github for anyone else who comes across this.