File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
features/cellular/framework/AT Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -599,13 +599,11 @@ int32_t ATHandler::read_int()
599
599
}
600
600
601
601
char buff[BUFF_SIZE];
602
- char *first_no_digit;
603
-
604
- if (read_string (buff, (size_t )sizeof (buff)) == 0 ) {
602
+ if (read_string (buff, sizeof (buff)) == 0 ) {
605
603
return -1 ;
606
604
}
607
605
608
- return std::strtol (buff, &first_no_digit , 10 );
606
+ return std::strtol (buff, NULL , 10 );
609
607
}
610
608
611
609
void ATHandler::set_delimiter (char delimiter)
@@ -1211,8 +1209,9 @@ void ATHandler::debug_print(const char *p, int len)
1211
1209
#if MBED_CONF_MBED_TRACE_ENABLE
1212
1210
mbed_cellular_trace::mutex_wait ();
1213
1211
#endif
1212
+ char c;
1214
1213
for (ssize_t i = 0 ; i < len; i++) {
1215
- char c = *p++;
1214
+ c = *p++;
1216
1215
if (!isprint (c)) {
1217
1216
if (c == ' \r ' ) {
1218
1217
debug (" \n " );
You can’t perform that action at this time.
0 commit comments