Skip to content

Commit 7c04545

Browse files
authored
Merge pull request #37 from meshtastic/rename-getmacaddr
Rename the getMacAddr function. Helps with adding the mac to config
2 parents a7d95ec + 5db1009 commit 7c04545

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cores/portduino/Arduino.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,6 @@ void portduinoAddArguments(const struct argp_child &child, void *childArguments)
5151
* write a 6 byte 'macaddr'/unique ID to the dmac parameter
5252
* This value can be customized with the --macaddr parameter and it defaults to 00:00:00:00:00:01
5353
*/
54-
void getMacAddr(uint8_t *dmac);
54+
void _getMacAddr(uint8_t *dmac);
5555
void reboot();
5656
#endif

cores/portduino/main.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ static error_t parse_opt(int key, char *arg, struct argp_state *state) {
8989
return 0;
9090
}
9191

92-
void getMacAddr(uint8_t *dmac) {
92+
void _getMacAddr(uint8_t *dmac) {
9393

9494
dmac[0] = 0x80;
9595
dmac[1] = 0;

0 commit comments

Comments
 (0)