Browse Source
Add files via upload
Anpassung an geaenderten Rueckgabewert fuer sml_find_hist_power().
pull/1080/head
oberfritze
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
810 additions and
810 deletions
-
src/web/RestApi.h
|
|
@ -296,7 +296,7 @@ class RestApi { |
|
|
|
|
|
|
|
#ifdef AHOY_SML_OBIS_SUPPORT |
|
|
|
if (mConfig->sml_obis.ir_connected) { |
|
|
|
if ((sml_power = sml_find_hist_power(sml_hist, cur_interval)) == -1) { |
|
|
|
if ((sml_power = sml_find_hist_power(sml_hist, cur_interval)) == INT32_MIN) { |
|
|
|
snprintf (&content[index], length - index, "\n%u:%02u,%u,", |
|
|
|
minutes / 60, minutes % 60, ac_power); |
|
|
|
} else { |
|
|
@ -319,7 +319,7 @@ class RestApi { |
|
|
|
|
|
|
|
#ifdef AHOY_SML_OBIS_SUPPORT |
|
|
|
if (mConfig->sml_obis.ir_connected) { |
|
|
|
if ((sml_power = sml_find_hist_power(sml_hist, cur_interval)) == -1) { |
|
|
|
if ((sml_power = sml_find_hist_power(sml_hist, cur_interval)) == INT32_MIN) { |
|
|
|
snprintf (&content[index], length - index, "\n%u:%02u,%u,", |
|
|
|
minutes / 60, minutes % 60, ac_power); |
|
|
|
} else { |
|
|
|