mirror of
https://github.com/meshtastic/firmware.git
synced 2025-09-14 14:31:24 +00:00
Merge branch 'meshtastic:master' into master
This commit is contained in:
commit
8f9c33324b
9
bin/config.d/OpenWRT-One-mikroBUS-LR-IOT-CLICK.yaml
Normal file
9
bin/config.d/OpenWRT-One-mikroBUS-LR-IOT-CLICK.yaml
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
## https://www.mikroe.com/lr-iot-click
|
||||||
|
Lora:
|
||||||
|
Module: lr1110 # OpenWRT ONE mikroBUS with LR-IOT-CLICK
|
||||||
|
# CS: 25
|
||||||
|
IRQ: 10
|
||||||
|
Busy: 12
|
||||||
|
# Reset: 2
|
||||||
|
spidev: spidev2.0
|
||||||
|
DIO3_TCXO_VOLTAGE: 1.6
|
@ -87,7 +87,8 @@ void getMacAddr(uint8_t *dmac)
|
|||||||
if (strlen(optionMac) >= 12) {
|
if (strlen(optionMac) >= 12) {
|
||||||
MAC_from_string(optionMac, dmac);
|
MAC_from_string(optionMac, dmac);
|
||||||
} else {
|
} else {
|
||||||
uint32_t hwId = sscanf(optionMac, "%u", &hwId);
|
uint32_t hwId;
|
||||||
|
sscanf(optionMac, "%u", &hwId);
|
||||||
dmac[0] = 0x80;
|
dmac[0] = 0x80;
|
||||||
dmac[1] = 0;
|
dmac[1] = 0;
|
||||||
dmac[2] = hwId >> 24;
|
dmac[2] = hwId >> 24;
|
||||||
@ -532,4 +533,4 @@ bool MAC_from_string(std::string mac_str, uint8_t *dmac)
|
|||||||
} else {
|
} else {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user