Skip to content

Commit 2ab1abe

Browse files
committed
Change “(void)” to “()"
1 parent 1b3ecf2 commit 2ab1abe

File tree

40 files changed

+114
-114
lines changed

40 files changed

+114
-114
lines changed

examples/application/soracom-gps-tracker/CellularTask.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ static constexpr int BATCH_SIZE = 6;
3131

3232
static bool send(const void* data, size_t dataSize);
3333

34-
void CellularTaskBegin(void) {
34+
void CellularTaskBegin() {
3535
// Network configuration
3636
WioNetwork.config.searchAccessTechnology = SEARCH_ACCESS_TECHNOLOGY;
3737
WioNetwork.config.ltemBand = LTEM_BAND;

examples/application/soracom-gps-tracker/CellularTask.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#ifndef CELLULARTASK_HPP
88
#define CELLULARTASK_HPP
99

10-
void CellularTaskBegin(void);
10+
void CellularTaskBegin();
1111
void CellularTaskFunction(void* param);
1212

1313
#endif // CELLULARTASK_H

examples/application/soracom-gps-tracker/MeasureTask.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ static constexpr int POLLING_GPS = 1000 * 60; // [ms]
1717
static String LatestGpsData;
1818

1919
static bool measure(JsonDocument& doc);
20-
static void GpsBegin(void);
21-
static void GpsEnd(void);
22-
static const char* GpsRead(void);
20+
static void GpsBegin();
21+
static void GpsEnd();
22+
static const char* GpsRead();
2323

24-
void MeasureTaskBegin(void) {
24+
void MeasureTaskBegin() {
2525
}
2626

2727
void MeasureTaskFunction(void* param) {
@@ -108,16 +108,16 @@ static bool measure(JsonDocument& doc) {
108108
static char GpsData[100];
109109
static int GpsDataLength;
110110

111-
static void GpsBegin(void) {
111+
static void GpsBegin() {
112112
Serial1.begin(9600);
113113
GpsDataLength = 0;
114114
}
115115

116-
static void GpsEnd(void) {
116+
static void GpsEnd() {
117117
Serial1.end();
118118
}
119119

120-
static const char* GpsRead(void) {
120+
static const char* GpsRead() {
121121
while (true) {
122122
const auto data = Serial1.read();
123123
if (data < 0) return NULL;

examples/application/soracom-gps-tracker/MeasureTask.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#ifndef MEASURETASK_HPP
88
#define MEASURETASK_HPP
99

10-
void MeasureTaskBegin(void);
10+
void MeasureTaskBegin();
1111
void MeasureTaskFunction(void* param);
1212

1313
#endif // MEASURETASK_HPP

examples/application/soracom-gps-tracker/soracom-gps-tracker.ino

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ static void abortHandler(int sig) {
3434
static TaskHandle_t CellularTaskHandle; // FreeRTOS
3535
static TaskHandle_t MeasureTaskHandle; // FreeRTOS
3636

37-
void setup(void) {
37+
void setup() {
3838
signal(SIGABRT, abortHandler);
3939
Serial.begin(115200);
4040
{
@@ -67,12 +67,12 @@ void setup(void) {
6767
digitalWrite(LED_BUILTIN, LOW);
6868
}
6969

70-
void loop(void) {
70+
void loop() {
7171
diagnostics();
7272
delay(INTERVAL);
7373
}
7474

75-
void diagnostics(void) {
75+
void diagnostics() {
7676
Serial.println(TASK_NAME "Diagnostics start");
7777

7878
// Stack

examples/basic/blink/blink.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66

77
#include <Adafruit_TinyUSB.h>
88

9-
void setup(void) {
9+
void setup() {
1010
}
1111

12-
void loop(void) {
12+
void loop() {
1313
digitalWrite(LED_BUILTIN, HIGH);
1414
delay(200);
1515
digitalWrite(LED_BUILTIN, LOW);

examples/basic/flash/flash.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ static Adafruit_SPIFlashMemory FlashMemory(Flash);
3434

3535
static NonVolatileMemory NvmValue(FlashMemory, 0x0000, 4);
3636

37-
void setup(void) {
37+
void setup() {
3838
signal(SIGABRT, abortHandler);
3939
Serial.begin(115200);
4040
{
@@ -65,7 +65,7 @@ void setup(void) {
6565
}
6666
}
6767

68-
void loop(void) {
68+
void loop() {
6969
uint32_t value = NvmValue.value<uint32_t>();
7070
Serial.println(value);
7171

examples/basic/watchdog/watchdog.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
static uint32_t start;
1616

17-
void setup(void) {
17+
void setup() {
1818
Serial.begin(115200);
1919
{
2020
const auto start = millis();
@@ -56,7 +56,7 @@ void setup(void) {
5656
start = millis();
5757
}
5858

59-
void loop(void) {
59+
void loop() {
6060
Serial.println(millis() - start);
6161

6262
if (digitalRead(PIN_BUTTON1) == LOW) {

examples/cellular/cellular-mqtt-pubsubclient/cellular-mqtt-pubsubclient.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ static std::string SubscribeTopic;
4646
static std::string PublishTopic;
4747
static int ReconnectWaitTime = RECONNECT_WAIT_TIME;
4848

49-
void setup(void) {
49+
void setup() {
5050
signal(SIGABRT, abortHandler);
5151
Serial.begin(115200);
5252
{
@@ -92,7 +92,7 @@ void setup(void) {
9292
digitalWrite(LED_BUILTIN, LOW);
9393
}
9494

95-
void loop(void) {
95+
void loop() {
9696
if (!MqttClient.connected()) {
9797
Serial.print("Connecting ");
9898
Serial.print(MQTT_BROKER_HOST);

examples/cellular/cellular-status/cellular-status.ino

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ static void abortHandler(int sig) {
2020
}
2121
}
2222

23-
void setup(void) {
23+
void setup() {
2424
signal(SIGABRT, abortHandler);
2525
Serial.begin(115200);
2626
{
@@ -43,7 +43,7 @@ void setup(void) {
4343
Serial.println();
4444
}
4545

46-
void loop(void) {
46+
void loop() {
4747
PrintStatus();
4848

4949
WioCellular.doWorkUntil(INTERVAL);
@@ -87,7 +87,7 @@ static std::string BerCodeToStr(int ber) {
8787
}
8888
}
8989

90-
static void PrintInfo(void) {
90+
static void PrintInfo() {
9191
std::string imei;
9292
WioCellular.getIMEI(&imei);
9393
std::string revision;
@@ -134,7 +134,7 @@ static void PrintInfo(void) {
134134
Serial.printf("Search Band - NB-IoT: %s\n", nbiotBand.c_str());
135135
}
136136

137-
static void PrintStatus(void) {
137+
static void PrintStatus() {
138138
const auto uptime = millis() / 1000;
139139
int rssi;
140140
int ber;

0 commit comments

Comments
 (0)