Skip to content

Commit

Permalink
[#165] Minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
susanw1 committed Sep 19, 2024
1 parent eb3db5c commit 9cb9b04
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 14 deletions.
Original file line number Diff line number Diff line change
@@ -1,16 +1,7 @@
package net.zscript.demo.morse;

import com.fazecast.jSerialComm.SerialPort;

import com.fazecast.jSerialComm.SerialPortInvalidPortException;
import picocli.CommandLine;
import picocli.CommandLine.Command;
import picocli.CommandLine.Option;
import picocli.CommandLine.Parameters;

import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.nio.ByteBuffer;
import java.nio.charset.StandardCharsets;
import java.util.ArrayList;
Expand All @@ -21,6 +12,13 @@
import java.util.concurrent.Callable;
import java.util.function.Predicate;

import com.fazecast.jSerialComm.SerialPort;
import com.fazecast.jSerialComm.SerialPortInvalidPortException;
import picocli.CommandLine;
import picocli.CommandLine.Command;
import picocli.CommandLine.Option;
import picocli.CommandLine.Parameters;

import net.zscript.javaclient.commandbuilder.commandnodes.CommandSequenceNode;
import net.zscript.javaclient.commandbuilder.commandnodes.ResponseCaptor;
import net.zscript.javaclient.commandbuilder.defaultCommands.BlankCommandNode;
Expand Down Expand Up @@ -505,7 +503,7 @@ public Integer call() throws Exception {
return 0;
}

public static void main(String[] args) throws IOException, InterruptedException {
public static void main(String[] args) {
int exitCode = new CommandLine(new MorseFullCli()).execute(args);
System.exit(exitCode);
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
package net.zscript.demo.morse;

import static net.zscript.model.modules.base.PinsModule.DigitalNotificationSectionContent.Value;

import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.Executors;
import java.util.concurrent.ScheduledExecutorService;
import java.util.concurrent.TimeUnit;

import static net.zscript.model.modules.base.PinsModule.DigitalNotificationSectionContent.Value;

import net.zscript.javaclient.commandbuilder.commandnodes.ResponseCaptor;
import net.zscript.javaclient.devices.Device;
import net.zscript.model.modules.base.CoreModule;
import net.zscript.model.modules.base.OuterCoreModule;
import net.zscript.model.modules.base.PinsModule;
import net.zscript.model.modules.base.PinsModule.DigitalSetupCommand.Builder.Mode;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ private Optional<ReadToken> seekMarker(final boolean seekSeqEnd, final boolean f

if (seekSeqEnd) {
if (token.isPresent()) {
assignSeqEndMarker(token.get().getKey());// Literally only this case can happen mid command to cause an error...
assignSeqEndMarker(token.get().getKey()); // Literally only this case can happen mid-command to cause an error...
} else {
haveSeqEndMarker = false;
}
Expand Down

0 comments on commit 9cb9b04

Please sign in to comment.