logging of live data structs was: data points #3614
This commit is contained in:
parent
90c6b0ba23
commit
b164b93dbd
|
@ -9,6 +9,7 @@
|
|||
#include "global.h"
|
||||
#include "tunerstudio_io.h"
|
||||
#include "electronic_throttle_generated.h"
|
||||
#include "FragmentEntry.h"
|
||||
|
||||
typedef struct {
|
||||
int queryCommandCounter;
|
||||
|
@ -37,6 +38,10 @@ const void * getStructAddr(live_data_e structId);
|
|||
#include "thread_controller.h"
|
||||
#include "thread_priority.h"
|
||||
|
||||
void initFragments();
|
||||
int getFragmentsCount();
|
||||
FragmentEntry *getFragments();
|
||||
|
||||
void updateTunerStudioState();
|
||||
|
||||
void requestBurn(void);
|
||||
|
|
Binary file not shown.
|
@ -33,11 +33,20 @@ public class UsagesReader {
|
|||
StringBuilder fragmentsContent = new StringBuilder(
|
||||
header +
|
||||
"#include \"pch.h\"\n" +
|
||||
"#include \"FragmentEntry.h\"\n\n" +
|
||||
"#include \"tunerstudio.h\"\n" +
|
||||
"static FragmentEntry fragments[" + liveDocs.size() + "];\n\n" +
|
||||
"static FragmentEntry fragments[" + liveDocs.size() + "];\n\n")
|
||||
;
|
||||
|
||||
fragmentsContent.append("int getFragmentsCount() {\n" +
|
||||
"\treturn " + liveDocs.size() + ";\n" +
|
||||
"}\n" +
|
||||
"\n" +
|
||||
"FragmentEntry *getFragments() {\n" +
|
||||
"\treturn fragments;\n" +
|
||||
"}\n\n" +
|
||||
"void initFragments() {\n");
|
||||
|
||||
|
||||
int index = 0;
|
||||
|
||||
for (Map.Entry entry : liveDocs.entrySet()) {
|
||||
|
|
Loading…
Reference in New Issue