Fix redundant write
Fix redundant write

In some circumstances the array would be written to twice when changing
the brightness.

martincostello/adventofcode,martincostello/adventofcode,martincostello/adventofcode,martincostello/adventofcode