This commit is contained in:
Andrey 2022-11-26 17:39:25 -05:00
parent 24c78d2f0b
commit 45a52e3ae2
1 changed files with 2 additions and 1 deletions

View File

@ -9,6 +9,7 @@
#include "com_rusefi_native__EngineLogic.h" #include "com_rusefi_native__EngineLogic.h"
#include "auto_generated_sensor.h" #include "auto_generated_sensor.h"
#include "tunerstudio.h" #include "tunerstudio.h"
#include "live_data.h"
#include <memory> #include <memory>
@ -75,7 +76,7 @@ JNIEXPORT void JNICALL Java_com_rusefi_native_1_EngineLogic_invokePeriodicCallba
} }
JNIEXPORT jbyteArray JNICALL Java_com_rusefi_native_1_EngineLogic_getOutputs(JNIEnv * env, jobject instance) { JNIEXPORT jbyteArray JNICALL Java_com_rusefi_native_1_EngineLogic_getOutputs(JNIEnv * env, jobject instance) {
jbyteArray retVal = env->NewByteArray(sizeof(TunerStudioOutputChannels)); jbyteArray retVal = env->NewByteArray(TS_TOTAL_OUTPUT_SIZE);
jbyte *buf = env->GetByteArrayElements(retVal, NULL); jbyte *buf = env->GetByteArrayElements(retVal, NULL);
EngineTestHelper* eth = getEth(); EngineTestHelper* eth = getEth();
updateTunerStudioState(); updateTunerStudioState();