TS SD integration #1653
This commit is contained in:
parent
a8ba5311f2
commit
3b8525b521
|
@ -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];
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue