Added buzzer

Added powerloss detector

Added buzzer behaviour to system.
Added powerloss behaviour to system 

Added french translation to menu texts

git-svn-id: https://svn.vbchaos.nl/svn/hsb/trunk@359 05563f52-14a8-4384-a975-3d1654cca0fa
This commit is contained in:
mmi
2017-12-13 13:22:06 +00:00
parent 9a5bbf8a7a
commit a48164fe7a
24 changed files with 973 additions and 160 deletions

View File

@@ -157,8 +157,9 @@ extern bool Led_getStatus(Led led)
{
char valueRed;
char valueGreen;
IODevice_read(self.leds[LED_BICOLOR_RED].ioDevice, &valueRed, 1, NULL);
IODevice_read(self.leds[LED_BICOLOR_GREEN].ioDevice, &valueGreen, 1, NULL);
size_t al;
IODevice_read(self.leds[LED_BICOLOR_RED].ioDevice, &valueRed, 1, &al);
IODevice_read(self.leds[LED_BICOLOR_GREEN].ioDevice, &valueGreen, 1, &al);
if ((valueRed != (char)false) && (valueGreen != (char)false))
{
returnValue = true;
@@ -167,7 +168,8 @@ extern bool Led_getStatus(Led led)
else
{
char value;
IODevice_read(self.leds[led].ioDevice, &value, 1, NULL);
size_t al;
IODevice_read(self.leds[led].ioDevice, &value, 1, &al);
if (value != (char)false)
{
returnValue = true;