1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-04-28 18:34:01 -04:00

LoRa modulator: use signed char for armv8 compatibility

This commit is contained in:
f4exb 2020-03-01 10:14:45 +01:00
parent cee6c6fd04
commit 6883a0310d
2 changed files with 4 additions and 4 deletions

View File

@ -17,7 +17,7 @@
#include "loramodencodertty.h"
const char LoRaModEncoderTTY::asciiToTTYLetters[128] = {
const signed char LoRaModEncoderTTY::asciiToTTYLetters[128] = {
// '\x00' '\x01' '\x02' '\x03' '\x04' '\x05' '\x06' '\x07'
0x00, -1 , -1 , -1 , -1 , -1 , -1 , -1 ,
// '\x08' '\t' '\n' '\x0b' '\x0c' '\r' '\x0e' '\x0f'
@ -52,7 +52,7 @@ const char LoRaModEncoderTTY::asciiToTTYLetters[128] = {
0x1d, 0x15, 0x11, -1 , -1 , -1 , -1 , -1
};
const char LoRaModEncoderTTY::asciiToTTYFigures[128] = {
const signed char LoRaModEncoderTTY::asciiToTTYFigures[128] = {
// '\x00' '\x01' '\x02' '\x03' '\x04' '\x05' '\x06' '\x07'
0x00, -1 , -1 , -1 , -1 , -1 , -1 , 0x05,
// '\x08' '\t' '\n' '\x0b' '\x0c' '\r' '\x0e' '\x0f'

View File

@ -33,8 +33,8 @@ private:
TTYFigures
};
static const char asciiToTTYLetters[128];
static const char asciiToTTYFigures[128];
static const signed char asciiToTTYLetters[128];
static const signed char asciiToTTYFigures[128];
static const char ttyLetters = 0x1f;
static const char ttyFigures = 0x1b;
};