src/main.cpp

changeset 49
c146d19101a3
parent 48
fc55f6eaa8bc
child 52
098124b730eb
equal deleted inserted replaced
48:fc55f6eaa8bc 49:c146d19101a3
268 //printf("Value is ... %X\n", hp->search()); 268 //printf("Value is ... %X\n", hp->search());
269 dsp->power_on(); 269 dsp->power_on();
270 dsp->cls(); 270 dsp->cls();
271 printf("Initiate startup sequence\n"); 271 printf("Initiate startup sequence\n");
272 if (last_key.keyevent == KEY_PRESSED) 272 if (last_key.keyevent == KEY_PRESSED)
273 hp->startup(kp_mapping[last_key.row][last_key.col]); 273 hp->send_startup_seq(kp_mapping[last_key.row][last_key.col]);
274 else 274 else
275 hp->startup(); 275 hp->send_startup_seq();
276 } 276 }
277 else 277 else
278 { 278 {
279 printf("HP_RST is not LOW, skipping\n"); 279 printf("HP_RST is not LOW, skipping\n");
280 } 280 }
364 dsp->copy_to_lcd(); 364 dsp->copy_to_lcd();
365 } 365 }
366 } 366 }
367 367
368 // at each loop iteration, send buffered keycodes, if any 368 // at each loop iteration, send buffered keycodes, if any
369 if (hp != NULL) 369 //if (hp != NULL)
370 hp->send_key_when_idle(); 370 // hp->send_key_when_idle();
371 371
372 if ((hp != NULL) && (hp->cmd_available())) 372 if ((hp != NULL) && (hp->cmd_available()))
373 { 373 {
374 if (hp->pop(cmd)) 374 if (hp->pop(cmd))
375 { 375 {

mercurial