mirror of
https://github.com/dimoniche/changer.git
synced 2026-01-30 01:03:30 +03:00
запрет повторного нажатия кнопки выдачи денег, если уже ранее нажимали
This commit is contained in:
parent
ab250d6432
commit
80f794fe4c
11962
Flash Central/Exe/changer0_23.hex
Normal file
11962
Flash Central/Exe/changer0_23.hex
Normal file
File diff suppressed because it is too large
Load Diff
@ -169,6 +169,8 @@ void UserAppTask(void *p_arg)
|
|||||||
CPU_INT32U MoneyIn = 0;
|
CPU_INT32U MoneyIn = 0;
|
||||||
// êíîïêà âêëþ÷åíà
|
// êíîïêà âêëþ÷åíà
|
||||||
CPU_INT32U led_on = 0;
|
CPU_INT32U led_on = 0;
|
||||||
|
// óæå íàæèìàëè êíîïêó
|
||||||
|
CPU_INT32U press_button = 0;
|
||||||
CPU_INT32U fiscal_enable = 0;
|
CPU_INT32U fiscal_enable = 0;
|
||||||
|
|
||||||
while (1)
|
while (1)
|
||||||
@ -555,7 +557,8 @@ void UserAppTask(void *p_arg)
|
|||||||
if(led_on)
|
if(led_on)
|
||||||
{
|
{
|
||||||
// íàæàëè êíîïêó, åñëè ìîæíî íàæèìàòü - âûäàäèì äåíüãè
|
// íàæàëè êíîïêó, åñëè ìîæíî íàæèìàòü - âûäàäèì äåíüãè
|
||||||
PostUserEvent(EVENT_GIVE_COIN);
|
if(!press_button) PostUserEvent(EVENT_GIVE_COIN);
|
||||||
|
press_button = 1;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@ -713,6 +716,7 @@ void UserAppTask(void *p_arg)
|
|||||||
}
|
}
|
||||||
|
|
||||||
led_on = 0;
|
led_on = 0;
|
||||||
|
press_button = 0;
|
||||||
LED_OK_OFF();
|
LED_OK_OFF();
|
||||||
|
|
||||||
UserPrintErrorMenu();
|
UserPrintErrorMenu();
|
||||||
@ -757,6 +761,7 @@ void UserAppTask(void *p_arg)
|
|||||||
}
|
}
|
||||||
|
|
||||||
led_on = 0;
|
led_on = 0;
|
||||||
|
press_button = 0;
|
||||||
LED_OK_OFF();
|
LED_OK_OFF();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -791,6 +796,7 @@ void UserAppTask(void *p_arg)
|
|||||||
}
|
}
|
||||||
|
|
||||||
led_on = 0;
|
led_on = 0;
|
||||||
|
press_button = 0;
|
||||||
LED_OK_OFF();
|
LED_OK_OFF();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
#ifndef _VERSION_H_
|
#ifndef _VERSION_H_
|
||||||
#define _VERSION_H_
|
#define _VERSION_H_
|
||||||
|
|
||||||
#define DEVICE_FW_VERSION "00.22"
|
#define DEVICE_FW_VERSION "00.23"
|
||||||
|
|
||||||
|
|
||||||
#endif // #ifndef _VERSION_H_
|
#endif // #ifndef _VERSION_H_
|
||||||
File diff suppressed because one or more lines are too long
10395
sk-mlpc2368.dep
10395
sk-mlpc2368.dep
File diff suppressed because it is too large
Load Diff
@ -1513,7 +1513,7 @@
|
|||||||
</option>
|
</option>
|
||||||
<option>
|
<option>
|
||||||
<name>OOCOutputFile</name>
|
<name>OOCOutputFile</name>
|
||||||
<state>changer0_22.hex</state>
|
<state>changer0_23.hex</state>
|
||||||
</option>
|
</option>
|
||||||
<option>
|
<option>
|
||||||
<name>OOCCommandLineProducer</name>
|
<name>OOCCommandLineProducer</name>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user