Skip to content

Commit 8a92b68

Browse files
committed
Fix some settings bugs.
Signed-off-by: Katharine Berry <[email protected]>
1 parent d54428b commit 8a92b68

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

app/src/pkjs/actions/settings.js

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -101,18 +101,18 @@ function updateResponseLanguage(session, value) {
101101
}
102102

103103
var vibePatternMap = {
104-
'Reveille': 1,
105-
'Mario': 2,
106-
'Nudge Nudge': 3,
107-
'Jackhammer': 4,
108-
'Standard': 5,
104+
'Reveille': "1",
105+
'Mario': "2",
106+
'Nudge Nudge': "3",
107+
'Jackhammer': "4",
108+
'Standard': "5",
109109
}
110110

111111
function updateAlarmVibrationPattern(session, value) {
112112
if (value in vibePatternMap) {
113-
config.setSetting('ALARM_VIBRATION_PATTERN', vibePatternMap[value]);
113+
config.setSetting('ALARM_VIBE_PATTERN', vibePatternMap[value]);
114114
session.enqueue({
115-
'ALARM_VIBRATION_PATTERN': vibePatternMap[value]
115+
'ALARM_VIBE_PATTERN': vibePatternMap[value]
116116
});
117117
return 'alarm vibration pattern to ' + value;
118118
} else {
@@ -122,9 +122,9 @@ function updateAlarmVibrationPattern(session, value) {
122122

123123
function updateTimerVibrationPattern(session, value) {
124124
if (value in vibePatternMap) {
125-
config.setSetting('TIMER_VIBRATION_PATTERN', vibePatternMap[value]);
125+
config.setSetting('TIMER_VIBE_PATTERN', vibePatternMap[value]);
126126
session.enqueue({
127-
'ALARM_VIBRATION_PATTERN': vibePatternMap[value]
127+
'TIMER_VIBE_PATTERN': vibePatternMap[value]
128128
});
129129
return 'timer vibration pattern to ' + value;
130130
} else {
@@ -134,9 +134,9 @@ function updateTimerVibrationPattern(session, value) {
134134

135135
function updateQuickLaunchBehaviour(session, value) {
136136
var behaviourMap = {
137-
'start conversation and time out': 1,
138-
'start conversation and stay open': 2,
139-
'open home screen': 3,
137+
'start conversation and time out': "1",
138+
'start conversation and stay open': "2",
139+
'open home screen': "3",
140140
};
141141
if (value in behaviourMap) {
142142
config.setSetting('QUICK_LAUNCH_BEHAVIOUR', behaviourMap[value]);

service/assistant/verifier/verifier.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ Examples:
4949
- "The timer has 5 minutes left" -> topic: "timer", action: "reporting"
5050
- "OK, I've updated your settings to use metric units" -> topic: "settings", action: "setting"
5151
- "OK, I've set the alarm vibration pattern to Mario" -> topic: "settings"", action: "setting"
52-
- "OK, I've set both your alarm and timer vibration patterns to Mario" -> topic: "settings", action: "setting"
52+
- "OK, I've set both your alarm and timer vibration patterns to Mario" -> topic: "settings", action: "setting" - *not* timer or alarm, this is only about changing settings
5353
- "I can set an alarm for you" -> nothing, this is just information about capabilities
5454
- "Would you like me to set the unit system to metric?" -> nothing, this is just a question
5555

0 commit comments

Comments
 (0)