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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user