diff --git a/Apex7000_BillValidator/ApexValidator.cs b/Apex7000_BillValidator/ApexValidator.cs
index f5d8ea3..e8bdf46 100644
--- a/Apex7000_BillValidator/ApexValidator.cs
+++ b/Apex7000_BillValidator/ApexValidator.cs
@@ -506,8 +506,8 @@ private void DoResetAcceptor()
{
byte[] reset = Request.ResetTarget;
// Toggle message number (ack #) if last message was okay and not a re-send request.
- reset[2] = (byte)(0x10 | Ack);
- Checksum(reset);
+ reset[2] = (byte)((Ack == 0) ? 0x60 : 0x61);
+ reset = Checksum(reset);
WriteWrapper(reset);
// Toggle ACK number
diff --git a/Apex7000_BillValidator/DataContracts.cs b/Apex7000_BillValidator/DataContracts.cs
index 5a49aaf..e351821 100644
--- a/Apex7000_BillValidator/DataContracts.cs
+++ b/Apex7000_BillValidator/DataContracts.cs
@@ -200,7 +200,7 @@ internal struct Request
{
// basic message 0 1 2 3 4 5 6 7
// start, len, ack, bills,escrow,resv'd,end, checksum
- internal static readonly byte[] BaseMessage = { 0x02, 0x08, 0x10, 0x7F, 0x10, 0x00, 0x03 };
+ internal static readonly byte[] BaseMessage = { 0x02, 0x08, 0x60, 0x7F, 0x10, 0x00, 0x03 };
internal static readonly byte[] ResetTarget = { 0x02, 0x08, 0x61, 0x7f, 0x7f, 0x7f, 0x03 };
}
diff --git a/Apex7000_BillValidator_Test/MainWindow.xaml b/Apex7000_BillValidator_Test/MainWindow.xaml
index 72c951e..37440fc 100644
--- a/Apex7000_BillValidator_Test/MainWindow.xaml
+++ b/Apex7000_BillValidator_Test/MainWindow.xaml
@@ -47,7 +47,7 @@
-
+
State: