CP fixed bug where it was writing to led outside of range