on xenial help sign in
Fixed typos.
5c90c06Renato Araujo Oliveira Filho
plugins/Lights/Lights.cpp+4−4
@@ -74,10 +74,10 @@ bool Lights::init()
74 m_lightDevice = (light_device_t*)device;
74 m_lightDevice = (light_device_t*)device;
75 return true;
75 return true;
76 } else {
76 } else {
77− qWarning() << "Failt to access notification lights";
77+ qWarning() << "Failed to access notification lights";
78 }
78 }
79 } else {
79 } else {
80− qWarning() << "Failt to initialize lights hardware.";
80+ qWarning() << "Failed to initialize lights hardware.";
81 }
81 }
82 return false;
82 return false;
83}
83}
@@ -103,7 +103,7 @@ void Lights::turnOn()
103 state.brightnessMode = BRIGHTNESS_MODE_USER;
103 state.brightnessMode = BRIGHTNESS_MODE_USER;
104
104
105 if (m_lightDevice->set_light(m_lightDevice, &state) != 0) {
105 if (m_lightDevice->set_light(m_lightDevice, &state) != 0) {
106− qWarning() << "Fail to turn the light off";
106+ qWarning() << "Failed to turn the light off";
107 } else {
107 } else {
108 m_state = Lights::On;
108 m_state = Lights::On;
109 Q_EMIT stateChanged(m_state);
109 Q_EMIT stateChanged(m_state);
@@ -130,7 +130,7 @@ void Lights::turnOff()
130 state.brightnessMode = 0;
130 state.brightnessMode = 0;
131
131
132 if (m_lightDevice->set_light(m_lightDevice, &state) != 0) {
132 if (m_lightDevice->set_light(m_lightDevice, &state) != 0) {
133− qWarning() << "Fail to turn the light off";
133+ qWarning() << "Failed to turn the light off";
134 } else {
134 } else {
135 m_state = Lights::Off;
135 m_state = Lights::Off;
136 Q_EMIT stateChanged(m_state);
136 Q_EMIT stateChanged(m_state);