Added PROTOCOL_VERSION define,

Started to change to new client-server protocol 0.2,
Added "slash" heartbeat mode...
This commit is contained in:
toykeeper
2000-01-05 00:03:25 +00:00
parent 14df3acb82
commit e2401e4a72
17 changed files with 101 additions and 43 deletions
+6 -1
View File
@@ -114,13 +114,18 @@ int draw_screen(screen *s, int timer)
if(heartbeat)
{
if(s->heartbeat || heartbeat == HEART_ON)
if((s->heartbeat==1) || heartbeat == HEART_ON)
{
// Set this to pulsate like a real heart beat...
// (binary is fun... :)
lcd.icon(!((timer+4)&5), 0);
lcd.chr(lcd.wid, 1, 0);
}
if((s->heartbeat==2) && heartbeat != HEART_OFF)
{
char *phases = "-\\|/";
lcd.chr(lcd.wid, 1, phases[timer&3]);
}
}
lcd.flush();