From fd1933b1ec1ae6d57525c7fe280dae2cabcecbd6 Mon Sep 17 00:00:00 2001 From: Vadim Tkachenko Date: Fri, 3 Feb 2023 23:59:36 -0700 Subject: [PATCH] Improved diagnostics --- .../src/main/java/com/rapplogic/xbee/api/XBeeRequest.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/xbee-api/src/main/java/com/rapplogic/xbee/api/XBeeRequest.java b/xbee-api/src/main/java/com/rapplogic/xbee/api/XBeeRequest.java index 317b6df..98c504a 100644 --- a/xbee-api/src/main/java/com/rapplogic/xbee/api/XBeeRequest.java +++ b/xbee-api/src/main/java/com/rapplogic/xbee/api/XBeeRequest.java @@ -19,6 +19,8 @@ package com.rapplogic.xbee.api; +import com.rapplogic.xbee.util.ByteUtils; + /** * The super class of all XBee transmit packets. * Constructs frame data portion of an XBee packet @@ -65,6 +67,6 @@ public byte getFrameId() { @Override public String toString() { - return "apiId=" + getApiId() + ",frameId=" + getFrameId(); + return "apiId=" + getApiId() + ",frameId=" + ByteUtils.toBase16(getFrameId()); } }