Sfoglia il codice sorgente

Fix threshold variable in index.js.
Remove log about 24 hours of data required when 24h.
Fix typo.
Previous commit resets oref0 settings (due to added variable).

Jon Mårtensson 3 anni fa
parent
commit
0f2597453b

File diff suppressed because it is too large
+ 1 - 1
FreeAPS/Resources/javascript/bundle/determine-basal.js


File diff suppressed because it is too large
+ 1 - 1
FreeAPS/Resources/javascript/bundle/profile.js


+ 3 - 3
FreeAPS/Resources/javascript/prepare/profile.js

@@ -36,12 +36,12 @@ function generate(pumpsettings_data, bgtargets_data, isf_data, basalprofile_data
     }
     }
 
 
     var model_data = { };
     var model_data = { };
-    if(model_input){
+    if (model_input) {
         model_data = model_input.replace(/"/gi, '');
         model_data = model_input.replace(/"/gi, '');
     }
     }
 
 
     var carbratio_data = { };
     var carbratio_data = { };
-    if (carbratio_input){
+    if (carbratio_input) {
         var errors = [ ];
         var errors = [ ];
         if (!(carbratio_input.schedule && carbratio_input.schedule[0].start && carbratio_input.schedule[0].ratio)) {
         if (!(carbratio_input.schedule && carbratio_input.schedule[0].start && carbratio_input.schedule[0].ratio)) {
           errors.push("Carb ratio data should have an array called schedule with a start and ratio fields.");
           errors.push("Carb ratio data should have an array called schedule with a start and ratio fields.");
@@ -56,7 +56,7 @@ function generate(pumpsettings_data, bgtargets_data, isf_data, basalprofile_data
     }
     }
 
 
     var preferences = { };
     var preferences = { };
-    if(preferences_input){
+    if (preferences_input) {
         preferences = preferences_input;
         preferences = preferences_input;
     }
     }