pub fn checksum(buffer: &[u8]) -> u16
Calculate the checksum for a DFPlayer message
The checksum is calculated by summing all bytes from version to parameters and then taking the two’s complement of the sum.