Commit 5b61abc702714fd225aa4e985769af8010e44b71

Con Kolivas 2014-02-01T23:53:33

Add OP_PING to hfa commands

diff --git a/driver-hashfast.c b/driver-hashfast.c
index d99ab0e..8de0eb7 100644
--- a/driver-hashfast.c
+++ b/driver-hashfast.c
@@ -101,7 +101,8 @@ static const struct hfa_cmd hfa_cmds[] = {
 	{OP_WORK_RESTART, "OP_WORK_RESTART", C_HF_WORK_RESTART},
 	{OP_USB_STATS1, "OP_USB_STATS1", C_NULL},
 	{OP_USB_GWQSTATS, "OP_USB_GWQSTATS", C_HF_GWQSTATS},
-	{OP_USB_NOTICE, "OP_USB_NOTICE", C_HF_NOTICE}
+	{OP_USB_NOTICE, "OP_USB_NOTICE", C_HF_NOTICE},
+	{OP_PING, "OP_PING", C_HF_PING}
 };
 
 #define HF_USB_CMD_OFFSET (128 - 18)
diff --git a/usbutils.h b/usbutils.h
index 77690fe..4c4f3d3 100644
--- a/usbutils.h
+++ b/usbutils.h
@@ -385,6 +385,7 @@ struct cg_usb_info {
 	USB_ADD_COMMAND(C_HF_WORK_RESTART, "HFWorkRestart") \
 	USB_ADD_COMMAND(C_HF_GWQSTATS, "HFGWQStats") \
 	USB_ADD_COMMAND(C_HF_NOTICE, "HFNotice") \
+	USB_ADD_COMMAND(C_HF_PING, "HFPing") \
 	USB_ADD_COMMAND(C_HF_GETHEADER, "HFGetHeader") \
 	USB_ADD_COMMAND(C_HF_GETDATA, "HFGetData") \
 	USB_ADD_COMMAND(C_HF_CLEAR_READ, "HFClearRead") \