SML: Clean code for NO_OP meter

Removing description for NO_OP meter saves about 80 bytes.
This commit is contained in:
TheChatty 2020-11-14 00:35:21 +01:00 committed by GitHub
parent fae30b2912
commit 53bcfd5ef8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 4 deletions

View File

@ -117,10 +117,8 @@ struct METER_DESC {
#if METER==SML_NO_OP
#undef METERS_USED
#define METERS_USED 0
struct METER_DESC const meter_desc[1]={
[0]={3,'o',0,SML_BAUDRATE,"OBIS",-1,1,0}};
const uint8_t meter[]=
"1,1-0:1.8.0*255(@1," D_TPWRIN ",kWh," DJ_TPWRIN ",4|";
struct METER_DESC const meter_desc[]={};
const uint8_t meter[]="";
#endif