Skip to content

Commit

Permalink
[LR11x0] Prevent WiFi scanning attempts on LR1121 (#1290)
Browse files Browse the repository at this point in the history
  • Loading branch information
jgromes committed Oct 26, 2024
1 parent b12f705 commit 709fbdb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/modules/LR11x0/LR1121.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@ class LR1121: public LR1120 {
*/
LR1121(Module* mod); // cppcheck-suppress noExplicitConstructor

// TODO this is where overrides to disable GNSS+WiFi scanning methods on LR1121
// will be put once those are implemented

#if !RADIOLIB_GODMODE
private:
#endif
Expand Down
5 changes: 5 additions & 0 deletions src/modules/LR11x0/LR11x0.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1512,6 +1512,11 @@ int16_t LR11x0::setLrFhssConfig(uint8_t bw, uint8_t cr, uint8_t hdrCount, uint16
}

int16_t LR11x0::startWifiScan(char wifiType, uint8_t mode, uint16_t chanMask, uint8_t numScans, uint16_t timeout) {
// LR1121 cannot do WiFi scanning
if(this->chipType == RADIOLIB_LR11X0_DEVICE_LR1121) {
return(RADIOLIB_ERR_UNSUPPORTED);
}

uint8_t type;
switch(wifiType) {
case('b'):
Expand Down

0 comments on commit 709fbdb

Please sign in to comment.