48_MieleAtHome: v2.1.1 - fix warning
git-svn-id: https://svn.fhem.de/fhem/trunk@27904 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
# Add changes at the top of the list. Keep it in ASCII, and 80-char wide.
|
# Add changes at the top of the list. Keep it in ASCII, and 80-char wide.
|
||||||
# Do not insert empty lines here, update check depends on it.
|
# Do not insert empty lines here, update check depends on it.
|
||||||
|
- bugfix: 48_MieleAtHome: fix warning
|
||||||
- feature: configDB.pm: show version counter in "configDB saved. (xx)"
|
- feature: configDB.pm: show version counter in "configDB saved. (xx)"
|
||||||
- feature: 93_DbLog: possible use of alternative tables for SVG Plots
|
- feature: 93_DbLog: possible use of alternative tables for SVG Plots
|
||||||
Forum:134547, fix warnings
|
Forum:134547, fix warnings
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ use Encode qw(encode_utf8);
|
|||||||
use List::Util qw[min max];
|
use List::Util qw[min max];
|
||||||
use JSON;
|
use JSON;
|
||||||
|
|
||||||
my $version = "2.1.0";
|
my $version = "2.1.1";
|
||||||
|
|
||||||
my $MAH_hasMimeBase64 = 1;
|
my $MAH_hasMimeBase64 = 1;
|
||||||
|
|
||||||
@@ -1645,7 +1645,8 @@ sub MAH_calculateETA($$$)
|
|||||||
sub MAH_formatTime(@)
|
sub MAH_formatTime(@)
|
||||||
{
|
{
|
||||||
my ($hour, $minute) = @_;
|
my ($hour, $minute) = @_;
|
||||||
return sprintf("%d:%02d", $hour, $minute);
|
return sprintf("%d:%02d", defined($hour) ? $hour : 0,
|
||||||
|
defined($minute) ? $minute : 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
#------------------------------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------------------------------
|
||||||
|
|||||||
Reference in New Issue
Block a user