summaryrefslogtreecommitdiff
path: root/SmartDeviceLink/SDLLightControlData.m
diff options
context:
space:
mode:
Diffstat (limited to 'SmartDeviceLink/SDLLightControlData.m')
-rw-r--r--SmartDeviceLink/SDLLightControlData.m7
1 files changed, 4 insertions, 3 deletions
diff --git a/SmartDeviceLink/SDLLightControlData.m b/SmartDeviceLink/SDLLightControlData.m
index ca8bdba76..586fe9a2d 100644
--- a/SmartDeviceLink/SDLLightControlData.m
+++ b/SmartDeviceLink/SDLLightControlData.m
@@ -2,7 +2,7 @@
//
#import "SDLLightControlData.h"
-#import "SDLNames.h"
+#import "SDLRPCParameterNames.h"
#import "NSMutableDictionary+Store.h"
#import "SDLLightState.h"
@@ -21,11 +21,12 @@ NS_ASSUME_NONNULL_BEGIN
}
- (void)setLightState:(NSArray<SDLLightState *> *)lightState {
- [store sdl_setObject:lightState forName:SDLNameLightState];
+ [store sdl_setObject:lightState forName:SDLRPCParameterNameLightState];
}
- (NSArray<SDLLightState *> *)lightState {
- return [store sdl_objectsForName:SDLNameLightState ofClass:SDLLightState.class];
+ NSError *error = nil;
+ return [store sdl_objectsForName:SDLRPCParameterNameLightState ofClass:SDLLightState.class error:&error];
}
@end