TS SD integration #1653

This commit is contained in:
rusefi 2020-08-07 16:37:36 -04:00
parent 6e114a9a23
commit 6eecba28b1
2 changed files with 11 additions and 3 deletions

View File

@ -208,7 +208,7 @@ void handleTsR(ts_channel_s *tsChannel, char *input) {
uint16_t blockNumber = SWAP_UINT16(data16[1]);
scheduleMsg(&sharedLogger, "TS_SD: fetch data command blockNumber=%d", blockNumber);
int offset = blockNumber * TRANSFER_SIZE;
// int offset = blockNumber * TRANSFER_SIZE;
buffer[0] = input[2];
buffer[1] = input[3];

View File

@ -1,5 +1,6 @@
package com.rusefi.ts_plugin;
import com.rusefi.autodetect.PortDetector;
import com.rusefi.io.ConnectionStateListener;
import com.rusefi.io.LinkManager;
@ -40,8 +41,15 @@ public class ConnectPanel {
.setCompositeLogicEnabled(false)
.setNeedPullData(false);
//controllerConnector.startAndConnect(":2390", ConnectionStateListener.VOID);
controllerConnector.startAndConnect(":29001", new ConnectionStateListener() {
String autoDetectedPort = PortDetector.autoDetectSerial(null);
if (autoDetectedPort == null) {
status.setText("rusEFI not detected");
return;
}
//":2390"
//String port = ":29001";
controllerConnector.startAndConnect(autoDetectedPort, new ConnectionStateListener() {
public void onConnectionEstablished() {
status.setText("Connected to rusEFI");
disconnect.setEnabled(true);