From 1452f07182d6551cba4214dc80fdf34b61419e58 Mon Sep 17 00:00:00 2001 From: "jacob.eva" Date: Wed, 21 May 2025 08:22:49 +0100 Subject: [PATCH] Updated formatting --- Documentation/CONTRIBUTING.md | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/Documentation/CONTRIBUTING.md b/Documentation/CONTRIBUTING.md index ef55d5f..1024f61 100644 --- a/Documentation/CONTRIBUTING.md +++ b/Documentation/CONTRIBUTING.md @@ -185,15 +185,20 @@ comparison where `MCU_VARIANT` is checked for your MCU variant. You also need to add entries to the `setTxPower()`, `eeprom_product_valid()` and `eeprom_model_valid()` functions in the same file. In `setTxPower()`, you simply need to add an if statement for your model, e.g: -`if (model == MODEL_99) radio->setTxPower(txp, PA_OUTPUT_PA_BOOST_PIN);` +``` +if (model == MODEL_99) radio->setTxPower(txp, PA_OUTPUT_PA_BOOST_PIN); +``` There is no difference between `PA_OUTPUT_PA_BOOST_PIN` and `PA_OUTPUT_RFO_PIN` on boards which do not have an SX1276/8. For `eeprom_product_valid()` you simply need to add your product value to the relevant if statment depending on what MCU variant your board uses. For example: -`if (rval == PRODUCT_RAK4631 || rval == PRODUCT_HELTEC_T114 || rval == PRODUCT_OPENCOM_XL || rval == PRODUCT_TECHO || rval == PRODUCT_MY_WICKED_BOARD || rval == PRODUCT_HMBRW) {` +``` +if (rval == PRODUCT_RAK4631 || rval == PRODUCT_HELTEC_T114 || rval == PRODUCT_OPENCOM_XL || rval == PRODUCT_TECHO || rval == PRODUCT_MY_WICKED_BOARD || rval == PRODUCT_HMBRW) { +``` Finally, for `eeprom_model_valid`, you must add an elif with the correct model number for the board, e.g: -```#elif BOARD_MODEL == BOARD_MY_WICKED_BOARD +``` +#elif BOARD_MODEL == BOARD_MY_WICKED_BOARD if (model == MODEL_99) { ``` -- 2.25.1