checksum

Function checksum 

Source
pub fn checksum(buffer: &[u8]) -> u16
Expand description

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.