mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-06-01 04:56:29 -04:00
Added raw ASCII char field in keyboard view
This commit is contained in:
parent
94b27ec45c
commit
72f3c08e9b
11 changed files with 110 additions and 70 deletions
|
@ -123,7 +123,11 @@ void LCRView::generate_message() {
|
|||
// Alt format
|
||||
for (dp = 0; dp < strlen(lcr_message); dp++) {
|
||||
pp = pm;
|
||||
cur_byte = alt_lookup[(uint8_t)lcr_message[dp] & 0x7F];
|
||||
// Do not apply LUT on checksum (last byte) ?
|
||||
if (dp != strlen(lcr_message) - 1)
|
||||
cur_byte = alt_lookup[(uint8_t)lcr_message[dp] & 0x7F];
|
||||
else
|
||||
cur_byte = lcr_message[dp];
|
||||
for (cp = 0; cp < 8; cp++) {
|
||||
if ((cur_byte >> cp) & 1) pp++;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue