提交 de019abd authored 作者: Giovanni Maruzzelli's avatar Giovanni Maruzzelli

gsmopen: indented

上级 16662920
......@@ -1668,7 +1668,7 @@ int gsmopen_serial_read_AT(private_t *tech_pvt, int look_for_ack, int timeout_us
#ifdef WANT_GSMLIB
try{
try {
char content2[1000];
SMSMessageRef sms;
//MessageType messagetype;
......@@ -1684,8 +1684,8 @@ try{
if (sms->dataCodingScheme().getAlphabet() == DCS_DEFAULT_ALPHABET) {
iso_8859_1_to_utf8(tech_pvt, (char *) sms->userData().c_str(), content2, sizeof(content2));
} else if (sms->dataCodingScheme().getAlphabet() == DCS_SIXTEEN_BIT_ALPHABET) {
ucs2_to_utf8(tech_pvt, (char *) bufToHex((unsigned char *) sms->userData().data(), sms->userData().length()).c_str(), content2,
sizeof(content2));
ucs2_to_utf8(tech_pvt, (char *) bufToHex((unsigned char *) sms->userData().data(), sms->userData().length()).c_str(),
content2, sizeof(content2));
} else {
ERRORA("dataCodingScheme not supported=%d\n", GSMOPEN_P_LOG, sms->dataCodingScheme().getAlphabet());
......@@ -1714,8 +1714,8 @@ try{
//servicecentretimestamp = sms->serviceCentreTimestamp();
//sender_recipient_address = sms->address();
} catch (GsmException &ge)
{
}
catch(GsmException & ge) {
ERRORA("GsmException= |||%s|||\n", GSMOPEN_P_LOG, ge.what());
}
......@@ -2751,7 +2751,7 @@ int gsmopen_sendsms(private_t *tech_pvt, char *dest, char *text)
if (tech_pvt->no_ucs2 || tech_pvt->sms_pdu_not_supported == 0) {
#ifdef WANT_GSMLIB
try{
try {
SMSMessageRef smsMessage;
memset(mesg_test, '\0', sizeof(mesg_test));
......@@ -2825,8 +2825,8 @@ try{
//servicecentretimestamp = sms->serviceCentreTimestamp();
//sender_recipient_address = sms->address();
#endif // NOTDEF
} catch (GsmException &ge)
{
}
catch(GsmException & ge) {
ERRORA("GsmException= |||%s|||\n", GSMOPEN_P_LOG, ge.what());
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论