Skip to content

Commit

Permalink
Minor formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
bmalinowsky committed Oct 8, 2023
1 parent 15d2984 commit 052e249
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
3 changes: 1 addition & 2 deletions src/io/calimero/link/KNXNetworkLinkUsb.java
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
import static io.calimero.serial.usb.UsbConnection.EmiType.Emi1;
import static java.lang.System.Logger.Level.DEBUG;
import static java.lang.System.Logger.Level.ERROR;
import static java.lang.System.Logger.Level.INFO;
import static java.lang.System.Logger.Level.TRACE;

import java.util.EnumSet;
Expand Down Expand Up @@ -140,7 +139,7 @@ protected KNXNetworkLinkUsb(final UsbConnection c, final KNXMediumSettings setti
// report device descriptor before switching to link layer mode
// not all devices provide a device descriptor 0
final DD0 dd0 = conn.deviceDescriptor();
logger.log(INFO, "Device Descriptor (Mask Version) {0}", dd0);
logger.log(DEBUG, "KNX device descriptor 0 (Mask Version): {0}", dd0);
}
catch (final KNXTimeoutException expected) {}

Expand Down
4 changes: 2 additions & 2 deletions src/io/calimero/link/KNXNetworkMonitorUsb.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@
import static io.calimero.serial.usb.UsbConnection.EmiType.Cemi;
import static io.calimero.serial.usb.UsbConnection.EmiType.Emi1;
import static io.calimero.serial.usb.UsbConnection.EmiType.Emi2;

import static java.lang.System.Logger.Level.INFO;

import java.lang.System.Logger.Level;
import java.util.EnumSet;

import io.calimero.Connection.BlockingMode;
Expand Down Expand Up @@ -126,7 +126,7 @@ protected KNXNetworkMonitorUsb(final UsbConnection c, final KNXMediumSettings se
// report device descriptor before switching to busmonitor mode
// not all devices provide a device descriptor 0
final DD0 dd0 = conn.deviceDescriptor();
logger.log(INFO, "Device Descriptor (Mask Version) {0}", dd0);
logger.log(Level.DEBUG, "KNX device descriptor 0 (Mask Version): {0}", dd0);
}
catch (final KNXTimeoutException expected) {}

Expand Down
4 changes: 2 additions & 2 deletions src/io/calimero/mgmt/ManagementProceduresImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ public void broadcast(final FrameEvent e) {}
@Override
public void dataConnected(final FrameEvent e) {
final var frame = e.getFrame();
if (frame instanceof CEMILData data) {
if (frame instanceof final CEMILData data) {
final byte[] apdu = frame.getPayload();
final var source = data.getSource();
if (DataUnitBuilder.getAPDUService(apdu) == DEVICE_DESC_RESPONSE) {
Expand All @@ -155,7 +155,7 @@ public void dataConnected(final FrameEvent e) {
dd0.accept(source, dd);
}
catch (final RuntimeException rte) { // KNXIllegalArgumentException for unknown DD0
logger.log(INFO, "{0} device descriptor 0 response", source, rte);
logger.log(INFO, source + " device descriptor 0 response", rte);
}
}
}
Expand Down

0 comments on commit 052e249

Please sign in to comment.