Skip to content

Commit

Permalink
[LR1121] misc. fixes of OLED and POST status
Browse files Browse the repository at this point in the history
  • Loading branch information
lyusupov committed Nov 18, 2024
1 parent 7ebb976 commit 0c814b0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
10 changes: 8 additions & 2 deletions software/firmware/source/SoftRF/src/driver/OLED.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,7 @@ static void OLED_radio()
if ((settings->power_save & POWER_SAVE_NORECEIVE) &&
(hw_info.rf == RF_IC_SX1276 ||
hw_info.rf == RF_IC_SX1262 ||
hw_info.rf == RF_IC_LR1121 ||
hw_info.rf == RF_IC_SA8X8)) {
u8x8->draw2x2String(0, 6, "OFF");
prev_rx_packets_counter = rx_packets_counter;
Expand Down Expand Up @@ -753,7 +754,9 @@ void OLED_049_func()
u8x8->drawString(5, 4, RX_text);

if (settings->power_save & POWER_SAVE_NORECEIVE &&
(hw_info.rf == RF_IC_SX1276 || hw_info.rf == RF_IC_SX1262)) {
(hw_info.rf == RF_IC_SX1276 ||
hw_info.rf == RF_IC_SX1262 ||
hw_info.rf == RF_IC_LR1121)) {
u8x8->draw2x2String(5, 6, "OFF");
prev_rx_packets_counter = rx_packets_counter;
} else {
Expand Down Expand Up @@ -1157,6 +1160,7 @@ void OLED_Next_Page()
(settings->power_save & POWER_SAVE_NORECEIVE) &&
(hw_info.rf == RF_IC_SX1276 ||
hw_info.rf == RF_IC_SX1262 ||
hw_info.rf == RF_IC_LR1121 ||
hw_info.rf == RF_IC_SA8X8)) {
OLED_current_page = (OLED_current_page + 1) % page_count;
}
Expand All @@ -1182,7 +1186,9 @@ void OLED_Next_Page()
if (hw_info.display == DISPLAY_OLED_0_49 &&
OLED_current_page == OLED_049_PAGE_ACFTS &&
(settings->power_save & POWER_SAVE_NORECEIVE) &&
(hw_info.rf == RF_IC_SX1276 || hw_info.rf == RF_IC_SX1262)) {
(hw_info.rf == RF_IC_SX1276 ||
hw_info.rf == RF_IC_SX1262 ||
hw_info.rf == RF_IC_LR1121)) {
OLED_current_page = (OLED_current_page + 1) % page_count;
}
#endif /* EXCLUDE_OLED_049 */
Expand Down
3 changes: 2 additions & 1 deletion software/firmware/source/SoftRF/src/platform/ESP32.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1757,7 +1757,8 @@ static void ESP32_post_init()

Serial.print(F("RADIO : "));
Serial.println(hw_info.rf == RF_IC_SX1262 ||
hw_info.rf == RF_IC_SX1276 ? F("PASS") : F("FAIL"));
hw_info.rf == RF_IC_SX1276 ||
hw_info.rf == RF_IC_LR1121 ? F("PASS") : F("FAIL"));
Serial.flush();
Serial.print(F("GNSS : "));
Serial.println(hw_info.gnss != GNSS_MODULE_NONE ? F("PASS") : F("FAIL"));
Expand Down

0 comments on commit 0c814b0

Please sign in to comment.