Skip to content

Commit 6080b75

Browse files
committed
Update formatting
1 parent 590b5dc commit 6080b75

File tree

3 files changed

+13
-11
lines changed

3 files changed

+13
-11
lines changed

examples/debug_modem/debug_modem.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ void debugBridgeUpdate(void) {
4747
break;
4848

4949
case ENTER_CHARACTER:
50-
input_buffer[input_buffer_index] = '\r';
50+
input_buffer[input_buffer_index] = '\r';
5151
input_buffer[input_buffer_index + 1] = '\0';
52-
SequansController.writeBytes((const uint8_t *)input_buffer,
52+
SequansController.writeBytes((const uint8_t*)input_buffer,
5353
strlen(input_buffer));
5454

5555
// Reset buffer

examples/extract_certificates/extract_certificates.ino

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#include "cert_def_1_signer.h"
88
#include "cert_def_3_device.h"
99

10-
void printCertificate(uint8_t *certificate, uint16_t size) {
10+
void printCertificate(uint8_t* certificate, uint16_t size) {
1111
char buffer[1024];
1212
size_t buffer_size = sizeof(buffer);
1313
ATCA_STATUS result =
@@ -60,9 +60,10 @@ void setup() {
6060
uint8_t buffer[g_cert_def_1_signer.cert_template_size + 4];
6161
size_t size = sizeof(buffer);
6262

63-
if (ATCA_SUCCESS !=
64-
(status = atcacert_read_cert(
65-
&g_cert_def_1_signer, public_key, buffer, &size))) {
63+
if (ATCA_SUCCESS != (status = atcacert_read_cert(&g_cert_def_1_signer,
64+
public_key,
65+
buffer,
66+
&size))) {
6667
Log.errorf("Failed to read signing certificate: %d\r\n", status);
6768
return;
6869
} else {
@@ -73,9 +74,10 @@ void setup() {
7374
Log.raw("\r\n\r\n");
7475

7576
// Retrive device certificate
76-
if (ATCA_SUCCESS !=
77-
(status = atcacert_read_cert(
78-
&g_cert_def_3_device, public_key, buffer, &size))) {
77+
if (ATCA_SUCCESS != (status = atcacert_read_cert(&g_cert_def_3_device,
78+
public_key,
79+
buffer,
80+
&size))) {
7981
Log.errorf("Failed to read device certificate: %d\r\n", status);
8082
return;
8183
} else {

examples/http_get_time/http_get_time.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
#define TIMEZONE_URL "worldtimeapi.org"
1313
#define TIMEZONE_URI "/api/timezone/Europe/Oslo.txt"
1414

15-
long getTimeFromResponse(String *resp) {
16-
int unix_time_index = resp->indexOf(String("unixtime: "));
15+
long getTimeFromResponse(String* resp) {
16+
int unix_time_index = resp->indexOf(String("unixtime: "));
1717
int utx_datetime_index = resp->indexOf(String("utc_datetime"));
1818

1919
return resp->substring(unix_time_index + 10, utx_datetime_index - 1)

0 commit comments

Comments
 (0)