Minor optimization

This commit is contained in:
Gunnar Skjold 2020-02-21 20:52:55 +01:00
parent 90b62638ed
commit fdac8f88af
4 changed files with 5 additions and 7 deletions

View File

@ -3,7 +3,6 @@
#ifndef _AIDON_h
#define _AIDON_h
enum class Aidon
{
List1 = 0x01,

View File

@ -80,10 +80,10 @@ void HanReader::debugPrint(byte *buffer, int start, int length)
bool HanReader::read()
{
if (han->available())
{
byte newByte = han->read();
return read(newByte);
while(han->available()) {
if(read(han->read())) {
return true;
}
}
return false;
}

View File

@ -3,7 +3,6 @@
#ifndef _KAMSTRUP_h
#define _KAMSTRUP_h
enum class Kamstrup
{
List3PhaseShort = 0x19,

View File

@ -217,7 +217,7 @@ var setStatus = function(id, status) {
item.addClass('badge badge-' + status);
};
var interval = 10000;
var interval = 5000;
var fetch = function() {
$.ajax({
url: '/data.json',