Converted some tab to spaces
This commit is contained in:
parent
2972d9aae7
commit
e3d3054a92
|
@ -17,6 +17,8 @@
|
||||||
//
|
//
|
||||||
// All text above must be included in any redistribution.
|
// All text above must be included in any redistribution.
|
||||||
//
|
//
|
||||||
|
// Edit : Tab size set to 2 but I converted tab to sapces
|
||||||
|
//
|
||||||
// **********************************************************************************
|
// **********************************************************************************
|
||||||
|
|
||||||
#include "LibTeleinfo.h"
|
#include "LibTeleinfo.h"
|
||||||
|
@ -142,8 +144,7 @@ Comments: checksum is calculated before adding, no need to bother with
|
||||||
ValueList * TInfo::addCustomValue(char * name, char * value, uint8_t * flags)
|
ValueList * TInfo::addCustomValue(char * name, char * value, uint8_t * flags)
|
||||||
{
|
{
|
||||||
// Little check
|
// Little check
|
||||||
if (name && *name && value && *value)
|
if (name && *name && value && *value) {
|
||||||
{
|
|
||||||
ValueList * me;
|
ValueList * me;
|
||||||
|
|
||||||
// Same as if we really received this line
|
// Same as if we really received this line
|
||||||
|
@ -594,9 +595,9 @@ void TInfo::customLabel( char * plabel, char * pvalue, uint8_t * pflags)
|
||||||
//}
|
//}
|
||||||
|
|
||||||
// triphasé c'est ADIR + Num Phase
|
// triphasé c'est ADIR + Num Phase
|
||||||
if (plabel[0]=='A' && plabel[1]=='D' && plabel[2]=='I' && plabel[3]=='R' )
|
if (plabel[0]=='A' && plabel[1]=='D' && plabel[2]=='I' && plabel[3]=='R' && plabel[4]>='1' && plabel[4]<='3') {
|
||||||
if (plabel[4]>='1' && plabel[4]<='3')
|
|
||||||
phase = plabel[4]-'0';
|
phase = plabel[4]-'0';
|
||||||
|
}
|
||||||
|
|
||||||
// Nous avons un ADPS ?
|
// Nous avons un ADPS ?
|
||||||
if (phase>=0 && phase <=3) {
|
if (phase>=0 && phase <=3) {
|
||||||
|
|
|
@ -17,6 +17,8 @@
|
||||||
//
|
//
|
||||||
// All text above must be included in any redistribution.
|
// All text above must be included in any redistribution.
|
||||||
//
|
//
|
||||||
|
// Edit : Tab size set to 2 but I converted tab to sapces
|
||||||
|
//
|
||||||
// **********************************************************************************
|
// **********************************************************************************
|
||||||
|
|
||||||
#ifndef LibTeleinfo_h
|
#ifndef LibTeleinfo_h
|
||||||
|
|
Loading…
Reference in New Issue