changed from setXState to a more discripive setDeviceStateToX
This commit is contained in:
@@ -6,18 +6,20 @@ const char off_state_name[] = __FILE_NAME__;
|
||||
|
||||
static void pressPwrMethod(Device_t *device) {
|
||||
printf("turning on device\n");
|
||||
setLockState(device);
|
||||
setDeviceStateToLock(device);
|
||||
}
|
||||
|
||||
static void pressStrInputMethod(Device_t *device) {
|
||||
(void) device;
|
||||
printf("nothing happens\n");
|
||||
}
|
||||
|
||||
static void pressLockMethod(Device_t *device) {
|
||||
(void) device;
|
||||
printf("nothing happens\n");
|
||||
}
|
||||
|
||||
void setOffState(Device_t *device) {
|
||||
void setDeviceStateToOff(Device_t *device) {
|
||||
device->state = (DeviceState_t){
|
||||
.state_name = off_state_name,
|
||||
.device = device,
|
||||
|
||||
Reference in New Issue
Block a user