mirror of
https://github.com/rstrouse/ESPSomfy-RTS.git
synced 2026-10-31 13:52:15 +01:00
fix: review fixes for the boot pin warnings
- The backup record's fallback RX pin is 35, as the radio's default is. - BootPins.h, pins.js and Transceiver.cpp say to keep the pins, the radio pins checked and the shared RX/TX rule in step. - index.js reads the chip model through one chipModel(). - BootPins.RADIO is RADIO_PINS; the P4 test builds its config once. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
8a59f51111
commit
658f5eabeb
6 changed files with 20 additions and 14 deletions
|
|
@ -9,7 +9,9 @@
|
|||
// the firmware. The ROM reads them before any code runs, so a radio that
|
||||
// drives one at power-up stops the board booting until EN is pressed (issue
|
||||
// #34). The strapping pins that only pick a download mode, quiet the boot
|
||||
// log or set the SDIO timing aren't listed. web UI: data-src/js/pins.js.
|
||||
// log or set the SDIO timing aren't listed. The web UI has the same pins in
|
||||
// data-src/js/pins.js, and checks the same radio pins as
|
||||
// transceiver_config_t::apply(): keep the three in step.
|
||||
//
|
||||
// Returns what the pin does at reset, or nullptr for a pin that can't stop
|
||||
// the boot.
|
||||
|
|
|
|||
|
|
@ -183,7 +183,7 @@ struct trans_record_t {
|
|||
uint8_t MOSIPin = 23;
|
||||
uint8_t MISOPin = 19;
|
||||
uint8_t TXPin = 13;
|
||||
uint8_t RXPin = 12;
|
||||
uint8_t RXPin = 35;
|
||||
float frequency = 433.42;
|
||||
float rxBandwidth = 99.97;
|
||||
float deviation = 47.60;
|
||||
|
|
|
|||
|
|
@ -605,7 +605,7 @@ void transceiver_config_t::apply() {
|
|||
ESP_LOGD(TAG, "Applying radio settings - Setting Data Pins RX:%u TX:%u", this->RXPin, this->TXPin);
|
||||
// The pins the CC1101 drives at power-up, before it is set up: GDO0
|
||||
// puts out a clock, GDO2 CHIP_RDYn, and SO follows CHIP_RDYn while CSN
|
||||
// is low.
|
||||
// is low. The web UI checks the same (data-src/js/pins.js).
|
||||
warnBootPin("TX", this->TXPin);
|
||||
if(this->RXPin != this->TXPin) warnBootPin("RX", this->RXPin);
|
||||
warnBootPin("MISO", this->MISOPin);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue