Skip to content

Commit e4eb119

Browse files
authored
Merge pull request #86 from khodand/patch-1
Save the current-params properly
2 parents 087829b + fc1bc5e commit e4eb119

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

www/cgi-bin/get-current.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ Content-lenght: 10
2222
EOF
2323

2424
if [ ! -e ./current-params ]; then
25-
echo "angularServomotor angularServomotor angularServomotor angularServomotor angularServomotor manipulatorServomotor sharpGP2Sensor sharpGP2Sensor touchSensor touchSensor lightSensor lightSensor sonarSensor sonarSensor volumeSensor encoder95 false encoder95 true encoder95 false encoder95 true motor100 motor100 motor100 motor100 lineSensor photo 0"
26-
echo "ON 50 2G ON 95 2000"
27-
echo "true"
28-
fi >> current-params
25+
echo "angularServomotor angularServomotor angularServomotor angularServomotor angularServomotor manipulatorServomotor sharpGP2Sensor sharpGP2Sensor touchSensor touchSensor lightSensor lightSensor sonarSensor sonarSensor volumeSensor encoder95 false encoder95 true encoder95 false encoder95 true motor100 motor100 motor100 motor100 lineSensor photo 0" >> current-params
26+
echo "ON 50 2G ON 95 2000" >> current-params
27+
echo "true" >> current-params
28+
fi
2929

3030

3131
response=$(cat current-params)

www/js/configurator.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ const app = new Vue({
142142
this.gyroRange = ag[5];
143143
this.accelFreq = ag[1];
144144
this.accelRange = ag[2];
145-
this.pppdEnabled = (network[0] === "ON");
145+
this.pppdEnabled = (network[0] === "true");
146146
},
147147
methods: {
148148
refreshDialogFlag() {

0 commit comments

Comments
 (0)