Allow tone_alarm cmd to use tone names as well as number

- remove script dependency on hard coded tone numbers
- fix bug restarting repeating tone after stop
This commit is contained in:
Jean Cyr
2013-08-31 01:03:32 -04:00
parent f246b68c7b
commit b80f0d46ae
4 changed files with 56 additions and 36 deletions
+1 -1
View File
@@ -19,5 +19,5 @@ then
fi
else
# SOS
tone_alarm 6
tone_alarm error
fi
+1 -1
View File
@@ -20,7 +20,7 @@ then
else
echo "[init] no microSD card found"
# Play SOS
tone_alarm 2
tone_alarm error
fi
#