checkElinkCmdSum static method

bool checkElinkCmdSum(
  1. List<int> data
)

Implementation

static bool checkElinkCmdSum(List<int> data) {
  final payload = data.sublist(1, data.length - 2);
  final sum = getElinkCmdSum(payload);
  return sum == (data[data.length - 2] & 0xFF);
}