Skip to content
Snippets Groups Projects
Commit 0660b77b authored by Sigrid Haflínudóttir's avatar Sigrid Haflínudóttir :peach:
Browse files

kbd fw: lpc wakeup clear serial, delay after write, treat '\0' as normal response from LPC

parent 68ebb369
No related branches found
No related tags found
No related merge requests found
...@@ -81,7 +81,8 @@ int remote_try_wakeup(void) { ...@@ -81,7 +81,8 @@ int remote_try_wakeup(void) {
return 0; return 0;
#endif #endif
for (int i=0; i<1000; i++) { empty_serial();
for (int i=0; i<400; i++) {
if (i%10 == 0) { if (i%10 == 0) {
gfx_clear(); gfx_clear();
sprintf(buf, "Waking up LPC... %d%%", i/4); sprintf(buf, "Waking up LPC... %d%%", i/4);
...@@ -91,8 +92,9 @@ int remote_try_wakeup(void) { ...@@ -91,8 +92,9 @@ int remote_try_wakeup(void) {
Serial_SendByte('a'); Serial_SendByte('a');
Serial_SendByte('\r'); Serial_SendByte('\r');
Delay_MS(25);
if (Serial_ReceiveByte()>0) { if (Serial_ReceiveByte()>=0) {
remote_receive_string(0); remote_receive_string(0);
ok = 1; ok = 1;
break; break;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment