запрет повторного нажатия кнопки выдачи денег, если уже ранее нажимали

This commit is contained in:
Dmitriy 2021-11-12 20:59:44 +03:00
parent ab250d6432
commit 80f794fe4c
6 changed files with 17178 additions and 5203 deletions

File diff suppressed because it is too large Load Diff

View File

@ -169,6 +169,8 @@ void UserAppTask(void *p_arg)
CPU_INT32U MoneyIn = 0;
// êíîïêà âêëþ÷åíà
CPU_INT32U led_on = 0;
// óæå íàæèìàëè êíîïêó
CPU_INT32U press_button = 0;
CPU_INT32U fiscal_enable = 0;
while (1)
@ -555,7 +557,8 @@ void UserAppTask(void *p_arg)
if(led_on)
{
// íàæàëè êíîïêó, åñëè ìîæíî íàæèìàòü - âûäàäèì äåíüãè
PostUserEvent(EVENT_GIVE_COIN);
if(!press_button) PostUserEvent(EVENT_GIVE_COIN);
press_button = 1;
}
break;
@ -713,6 +716,7 @@ void UserAppTask(void *p_arg)
}
led_on = 0;
press_button = 0;
LED_OK_OFF();
UserPrintErrorMenu();
@ -757,6 +761,7 @@ void UserAppTask(void *p_arg)
}
led_on = 0;
press_button = 0;
LED_OK_OFF();
}
@ -791,6 +796,7 @@ void UserAppTask(void *p_arg)
}
led_on = 0;
press_button = 0;
LED_OK_OFF();
}

View File

@ -1,7 +1,7 @@
#ifndef _VERSION_H_
#define _VERSION_H_
#define DEVICE_FW_VERSION "00.22"
#define DEVICE_FW_VERSION "00.23"
#endif // #ifndef _VERSION_H_

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

View File

@ -1513,7 +1513,7 @@
</option>
<option>
<name>OOCOutputFile</name>
<state>changer0_22.hex</state>
<state>changer0_23.hex</state>
</option>
<option>
<name>OOCCommandLineProducer</name>