Enhance llcc68 definitions with new bandwidth and coding rate enums

- Added a new bandwidth enum value for 7.8MHz and corresponding string conversion function.
- Introduced a string conversion function for coding rates.
- Implemented a utility function to safely convert uint8_t to optional for spreading factors.
- Enhanced the modulation parameters structure with a to_string method for better representation.
This commit is contained in:
2025-06-03 18:33:51 +08:00
parent ee1c1a0497
commit c549538844
2 changed files with 63 additions and 2 deletions

View File

@ -962,8 +962,8 @@ read_data_internal() {
APP_RADIO_RETURN_ERR(irq_);
const auto st_ = get_status();
APP_RADIO_RETURN_ERR(st_);
const auto irq = std::move(*irq_);
const auto st = std::move(*st_);
const auto irq = *irq_;
const auto st = *st_;
if (irq & RADIOLIB_SX126X_IRQ_TIMEOUT || st.command_status == CommandStatus::COMMAND_TIMEOUT) {
return ue_t{error_t{error::RADIO_RX_TIMEOUT}};
}