posSetBeep static method

Uint8List? posSetBeep(
  1. int m,
  2. int t
)

蜂鸣指令 @param m 蜂鸣次数 @param t 每次蜂鸣的时间 @return

Implementation

static Uint8List? posSetBeep(int m, int t) {
  if ((m < 1 || m > 9) | (t < 1 || t > 9)) return null;
  Command.escB[2] = m;
  Command.escB[3] = t;
  return Uint8List.fromList(Command.escB);
}