posSetCashBox static method

Uint8List? posSetCashBox(
  1. int nMode,
  2. int nTime1,
  3. int nTime2
)

钱箱指令 @param nMode @param nTime1 @param nTime2 @return

Implementation

static Uint8List? posSetCashBox(int nMode, int nTime1, int nTime2) {
  if ((nMode < 0 || nMode > 1) ||
      nTime1 < 0 ||
      nTime1 > 255 ||
      nTime2 < 0 ||
      nTime2 > 255) return null;

  Command.escp[2] = nMode;
  Command.escp[3] = nTime1;
  Command.escp[4] = nTime2;
  return Uint8List.fromList(Command.escp);
}