Skip to content

Commit 553718b

Browse files
author
Kimmo Vaisanen
committed
Cellular: Optimize memory usage for gsm_to_ascii table
gsm_to_ascii table contains ASCII codes, so it can be a char table instead of int table. This reduces ROM usage by 384 bytes.
1 parent c40d860 commit 553718b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

features/cellular/framework/AT/AT_CellularSMS.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ const uint8_t SMS_MAX_GSM7_CONCATENATED_SINGLE_SMS_SIZE = 153;
4141
#define NVAM '?' // Not Valid ascii, ISO-8859-1 mark
4242

4343
// mapping table from 7-bit GSM to ascii (ISO-8859-1)
44-
static const int gsm_to_ascii[] = {
44+
static const char gsm_to_ascii[] = {
4545
64, // 0
4646
163, // 1
4747
36, // 2

0 commit comments

Comments
 (0)