Skip to content

Commit 82de765

Browse files
committed
Add const qualifier to use_ethernet function argument
1 parent 00662b1 commit 82de765

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/utility/ota/OTA-portenta-h7.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
* FUNCTION DEFINITION
3838
******************************************************************************/
3939

40-
int portenta_h7_onOTARequest(char const * ota_url, bool use_ethernet)
40+
int portenta_h7_onOTARequest(char const * ota_url, const bool use_ethernet)
4141
{
4242
watchdog_reset();
4343

src/utility/ota/OTA.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ int rp2040_connect_onOTARequest(char const * ota_url);
6363
#endif
6464

6565
#ifdef BOARD_STM32H7
66-
int portenta_h7_onOTARequest(char const * ota_url, bool use_ethernet);
66+
int portenta_h7_onOTARequest(char const * ota_url, const bool use_ethernet);
6767
#endif
6868

6969
#endif /* ARDUINO_OTA_LOGIC_H_ */

src/utility/watchdog/Watchdog.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
#if defined (ARDUINO_ARCH_SAMD) || defined (ARDUINO_ARCH_MBED)
2626
void watchdog_enable();
2727
void watchdog_reset();
28-
void watchdog_enable_network_feed(bool use_ethernet);
28+
void watchdog_enable_network_feed(const bool use_ethernet);
2929
#endif /* (ARDUINO_ARCH_SAMD) || (ARDUINO_ARCH_MBED) */
3030

3131
#ifdef ARDUINO_ARCH_MBED

0 commit comments

Comments
 (0)