vial: properly use memcpy_P for retrieving keyboard definition

This commit is contained in:
Ilya Zhuravlev 2020-12-17 05:22:03 -05:00
parent 0cb8088cc4
commit 71280fe884

View File

@ -63,7 +63,7 @@ void vial_handle_cmd(uint8_t *msg, uint8_t length) {
return;
if (end > sizeof(keyboard_definition))
end = sizeof(keyboard_definition);
memcpy(msg, &keyboard_definition[start], end - start);
memcpy_P(msg, &keyboard_definition[start], end - start);
break;
}
}