OR-ing 0xFF000000 into the raw value relies on fixed-width 32-bit wraparound to produce a negative number, but Python ints are arbitrary-precision, so the OR left negative EEG readings incorrectly represented as large positive integers. Subtracting 0x01000000 performs the sign extension correctly regardless of int width.