Update xsns_53_sml.ino

This commit is contained in:
gemu2015 2020-02-04 07:09:29 +01:00
parent fc92896ef5
commit 79261c7512
1 changed files with 0 additions and 18 deletions

View File

@ -2129,25 +2129,7 @@ uint32_t SML_Write(uint32_t meter,char *hstr) {
if (meter<1 || meter>meters_used) return 0;
meter--;
if (!meter_ss[meter]) return 0;
SML_Send_Seq(meter,hstr);
/*
uint8_t sbuff[32];
uint8_t *ucp=sbuff,slen=0;
char *cp=hstr;
while (*cp) {
if (!*cp || !*(cp+1)) break;
uint8_t iob=(sml_hexnibble(*cp) << 4) | sml_hexnibble(*(cp+1));
cp+=2;
*ucp++=iob;
slen++;
if (slen>=sizeof(sbuff)) break;
}
meter_ss[meter]->write(sbuff,slen);
return slen;
*/
return 1;
}
#endif