Skip to content

Commit 10ce221

Browse files
committed
remove depracted functions, fix typo and style
1 parent 77dd2ce commit 10ce221

3 files changed

Lines changed: 2 additions & 23 deletions

File tree

variants/lilygo_techo_card/TechoCardBoard.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ void TechoCardBoard::begin() {
2222
NRF52BoardDCDC::begin();
2323
Wire.begin();
2424

25-
for (uint8_t i = 0; i < sizeof(Led) / sizeof(*Led); i++)
25+
for (uint8_t i = 0; i < sizeof(Led) / sizeof(Led[0]); i++)
2626
{
2727
Led[i]->begin();
2828
delay(3); // allow the LEDs to initialise, otherwise they can get stuck
@@ -88,7 +88,7 @@ void TechoCardBoard::turnOffLeds() {
8888
}
8989

9090
void TechoCardBoard::powerOff() {
91-
nrf_gpio_cfg_sense_input(BUTTON_PIN, NRF_GPIO_PIN_PULLUP, NRF_GPIO_PIN_SENSE_LOW);\
91+
nrf_gpio_cfg_sense_input(BUTTON_PIN, NRF_GPIO_PIN_PULLUP, NRF_GPIO_PIN_SENSE_LOW);
9292
turnOffLeds();
9393
digitalWrite(PIN_PWR_EN, LOW);
9494
sd_power_system_off();

variants/lilygo_techo_card/target.cpp

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -32,24 +32,7 @@ bool radio_init() {
3232
return radio.std_init(&SPI);
3333
}
3434

35-
uint32_t radio_get_rng_seed() {
36-
return radio.random(0x7FFFFFFF);
37-
}
38-
39-
void radio_set_params(float freq, float bw, uint8_t sf, uint8_t cr) {
40-
radio.setFrequency(freq);
41-
radio.setSpreadingFactor(sf);
42-
radio.setBandwidth(bw);
43-
radio.setCodingRate(cr);
44-
}
45-
46-
void radio_set_tx_power(int8_t dbm) {
47-
radio.setOutputPower(dbm);
48-
}
49-
5035
mesh::LocalIdentity radio_new_identity() {
5136
RadioNoiseListener rng(radio);
5237
return mesh::LocalIdentity(&rng); // create new random identity
5338
}
54-
55-

variants/lilygo_techo_card/target.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,4 @@ extern EnvironmentSensorManager sensors;
2626
#endif
2727

2828
bool radio_init();
29-
uint32_t radio_get_rng_seed();
30-
void radio_set_params(float freq, float bw, uint8_t sf, uint8_t cr);
31-
void radio_set_tx_power(int8_t dbm);
3229
mesh::LocalIdentity radio_new_identity();
33-

0 commit comments

Comments
 (0)