Skip to content

Commit 40b769e

Browse files
author
jjaranda13
committed
Merge branch 'player'
2 parents f2f79f6 + 245fd0c commit 40b769e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

player/quantizer_decoder.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ void decode_line_quantizer(uint8_t * hops, uint8_t * component_value, int hops_l
3636
}
3737
// Checks that there wont be overflow plus if gradient is activated.
3838
#ifdef IS_GRADIENT
39-
if ((hop0 + gradient >= 1) && (hop0 + gradient <= 255))
39+
if (!(hop0 + gradient < 1) || (hop0 + gradient > 255))
4040
hop0 += gradient;
4141
#endif
4242

0 commit comments

Comments
 (0)