getElinkCmdSum static method

int getElinkCmdSum(
  1. List<int> payload
)

Implementation

static int getElinkCmdSum(List<int> payload) {
  return payload.fold(0, (prev, element) => prev + element) & 0xFF;
}