missing cob fix
This commit is contained in:
parent
b39fe2ee5e
commit
8c213cbc11
1 changed files with 4 additions and 0 deletions
|
@ -545,6 +545,10 @@ public class IobCobCalculatorPlugin implements PluginBase {
|
|||
//log.debug(">>> getAutosensData Cache hit " + data.log(time));
|
||||
return data;
|
||||
} else {
|
||||
if (time > now) {
|
||||
// data may not be calculated yet, use last data
|
||||
return getLastAutosensData();
|
||||
}
|
||||
//log.debug(">>> getAutosensData Cache miss " + new Date(time).toLocaleString());
|
||||
return null;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue