diff --git a/Other Examples/Television/Television.ino b/Other Examples/Television/Television.ino index e745dbc..1d3fe58 100644 --- a/Other Examples/Television/Television.ino +++ b/Other Examples/Television/Television.ino @@ -193,7 +193,7 @@ void setup() { new Characteristic::TargetVisibilityState(0); SpanService *hdmi10 = new Service::InputSource(); - new Characteristic::ConfiguredNameStatic("HDMI 10"); // Source Name is static and cannot be edited in Settings Screen + (new Characteristic::ConfiguredName("HDMI 10"))->removePerms(PW); // Source Name permissions changed and now cannot be edited in Settings Screen new Characteristic::Identifier(10); new Characteristic::IsConfigured(1); // Source included in the Settings Screen... new Characteristic::CurrentVisibilityState(0); // ...and included in the Selection List... diff --git a/src/Characteristics.h b/src/Characteristics.h index 8b85fa2..dbb3424 100644 --- a/src/Characteristics.h +++ b/src/Characteristics.h @@ -94,7 +94,6 @@ struct HapCharacteristics { HAPCHAR( CoolingThresholdTemperature, D, PR+PW+EV, FLOAT, false ); HAPCHAR( ColorTemperature, CE, PR+PW+EV, UINT32, false ); HAPCHAR( ConfiguredName, E3, PW+PR+EV, STRING, false ); - HAPCHAR( ConfiguredNameStatic, E3, PR+EV, STRING, false ); HAPCHAR( ContactSensorState, 6A, PR+EV, UINT8, true ); HAPCHAR( CurrentAmbientLightLevel, 6B, PR+EV, FLOAT, false ); HAPCHAR( CurrentHorizontalTiltAngle, 6C, PR+EV, INT, false ); diff --git a/src/Span.h b/src/Span.h index 8af5e6b..e10c585 100644 --- a/src/Span.h +++ b/src/Span.h @@ -420,7 +420,6 @@ namespace Characteristic { CREATE_CHAR(uint32_t,ColorTemperature,200,140,500); CREATE_CHAR(uint8_t,ContactSensorState,1,0,1); CREATE_CHAR(const char *,ConfiguredName,"unnamed",0,1); - CREATE_CHAR(const char *,ConfiguredNameStatic,"unnamed",0,1); CREATE_CHAR(double,CurrentAmbientLightLevel,1,0.0001,100000); CREATE_CHAR(int,CurrentHorizontalTiltAngle,0,-90,90); CREATE_CHAR(uint8_t,CurrentAirPurifierState,1,0,2);