mirror of https://github.com/FOME-Tech/fome-fw.git
auto-sync
This commit is contained in:
parent
fcd4938a87
commit
914be6d251
|
@ -110,13 +110,16 @@ public class BinaryProtocolServer {
|
|||
short page = dis.readShort();
|
||||
short offset = swap16(dis.readShort());
|
||||
short count = swap16(dis.readShort());
|
||||
System.out.println("read " + page + "/" + offset + "/" + count);
|
||||
BinaryProtocol bp = BinaryProtocol.instance;
|
||||
|
||||
byte[] response = new byte[1 + count];
|
||||
response[0] = (byte) TS_OK.charAt(0);
|
||||
System.arraycopy(bp.getController().getContent(), offset, response, 1, count);
|
||||
BinaryProtocol.sendCrcPacket(response, FileLog.LOGGER, stream);
|
||||
if (count <= 0) {
|
||||
FileLog.MAIN.logLine("Error: negative read request " + offset + "/" + count);
|
||||
} else {
|
||||
System.out.println("read " + page + "/" + offset + "/" + count);
|
||||
BinaryProtocol bp = BinaryProtocol.instance;
|
||||
byte[] response = new byte[1 + count];
|
||||
response[0] = (byte) TS_OK.charAt(0);
|
||||
System.arraycopy(bp.getController().getContent(), offset, response, 1, count);
|
||||
BinaryProtocol.sendCrcPacket(response, FileLog.LOGGER, stream);
|
||||
}
|
||||
} else if (command == BinaryProtocol.COMMAND_OUTPUTS) {
|
||||
|
||||
byte[] response = new byte[1 + BinaryProtocol.OUTPUT_CHANNELS_SIZE];
|
||||
|
|
|
@ -32,7 +32,7 @@ import static com.rusefi.ui.storage.PersistentConfiguration.getConfig;
|
|||
* @see EngineSnifferPanel
|
||||
*/
|
||||
public class Launcher {
|
||||
public static final int CONSOLE_VERSION = 20151224;
|
||||
public static final int CONSOLE_VERSION = 20151226;
|
||||
public static final boolean SHOW_STIMULATOR = false;
|
||||
private static final String TAB_INDEX = "main_tab";
|
||||
protected static final String PORT_KEY = "port";
|
||||
|
|
Loading…
Reference in New Issue