You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

10 lines
208 B

4 years ago
  1. package hexmsgsend
  2. type Transmitter struct {
  3. CheckSum func(instruction []byte, isAppend bool) []byte
  4. }
  5. func (t *Transmitter) Data(data []byte) []byte {
  6. sendRaw := t.CheckSum(data, true)
  7. return sendRaw
  8. }