log script params separately
This commit is contained in:
parent
9c93d3ad7d
commit
28c329dc01
1 changed files with 8 additions and 9 deletions
|
@ -116,15 +116,14 @@ public class DetermineBasalAdapterAMAJS {
|
||||||
|
|
||||||
public DetermineBasalResultAMA invoke() {
|
public DetermineBasalResultAMA invoke() {
|
||||||
|
|
||||||
mV8rt.executeVoidScript(
|
log.debug(">>> Invoking detemine_basal <<<");
|
||||||
"console.error(\"determine_basal(\"+\n" +
|
log.debug("Glucose status: " + mV8rt.executeStringScript("JSON.stringify(" + PARAM_glucoseStatus + ");"));
|
||||||
"JSON.stringify(" + PARAM_glucoseStatus + ")+ \", \" +\n" +
|
log.debug("IOB data: " + mV8rt.executeStringScript("JSON.stringify(" + PARAM_iobData + ");"));
|
||||||
"JSON.stringify(" + PARAM_currentTemp + ")+ \", \" +\n" +
|
log.debug("Current temp: " + mV8rt.executeStringScript("JSON.stringify(" + PARAM_currentTemp + ");"));
|
||||||
"JSON.stringify(" + PARAM_iobData + ")+ \", \" +\n" +
|
log.debug("Profile: " + mV8rt.executeStringScript("JSON.stringify(" + PARAM_profile + ");"));
|
||||||
"JSON.stringify(" + PARAM_profile + ")+ \", \" +\n" +
|
log.debug("Meal data: " + mV8rt.executeStringScript("JSON.stringify(" + PARAM_meal_data + ");"));
|
||||||
"JSON.stringify(" + PARAM_autosens_data + ")+ \", \" +\n" +
|
log.debug("Autosens data: " + mV8rt.executeStringScript("JSON.stringify(" + PARAM_autosens_data + ");"));
|
||||||
"JSON.stringify(" + PARAM_meal_data + ")+ \") \");"
|
|
||||||
);
|
|
||||||
mV8rt.executeVoidScript(
|
mV8rt.executeVoidScript(
|
||||||
"var rT = determine_basal(" +
|
"var rT = determine_basal(" +
|
||||||
PARAM_glucoseStatus + ", " +
|
PARAM_glucoseStatus + ", " +
|
||||||
|
|
Loading…
Reference in a new issue