s/got_alarm/sigalarm_triggered/g

This commit is contained in:
Gwenhael Le Moine 2024-04-10 09:34:57 +02:00
parent dd51ede578
commit 7fbbd3d89c
No known key found for this signature in database
GPG key ID: FDFE3669426707A7
4 changed files with 9 additions and 9 deletions

View file

@ -13,7 +13,7 @@
static bool interrupt_called = false;
extern long nibble_masks[ 16 ];
bool got_alarm = false;
bool sigalarm_triggered = false;
bool first_press = true; // PATCH
@ -299,8 +299,8 @@ void do_shutdown( void )
do {
pause();
if ( got_alarm ) {
got_alarm = false;
if ( sigalarm_triggered ) {
sigalarm_triggered = false;
ui_refresh_LCD();

View file

@ -2346,8 +2346,8 @@ inline void schedule( void )
schedule_event--;
if ( got_alarm ) {
got_alarm = false;
if ( sigalarm_triggered ) {
sigalarm_triggered = false;
ui_refresh_LCD();

View file

@ -292,7 +292,7 @@ typedef struct saturn_t {
#define NIBBLES_PER_ROW 0x22
#define NIBBLES_NB_BITS 4
extern bool got_alarm;
extern bool sigalarm_triggered;
extern int set_t1;

View file

@ -21,7 +21,7 @@ void signal_handler( int sig )
enter_debugger |= USER_INTERRUPT;
break;
case SIGALRM:
got_alarm = true;
sigalarm_triggered = true;
break;
case SIGPIPE:
exit_emulator();
@ -72,8 +72,8 @@ int main( int argc, char** argv )
/************************************/
/*
Every <interval>µs setitimer will trigger a SIGALRM
which will set got_alarm to true
In emulate() got_alarm triggers LCD refresh and UI event handling
which will set sigalarm_triggered to true
In emulate() sigalarm_triggered triggers LCD refresh and UI event handling
*/
struct itimerval it;
int interval = 15625; /* 64Hz according to https://www.hpcalc.org/hp48/docs/faq/48faq-6.html */