Skip to content

Commit

Permalink
Updated rpi-net-manager
Browse files Browse the repository at this point in the history
  • Loading branch information
CameronRP committed Feb 8, 2024
1 parent 16c28b2 commit 52448df
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion api/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -941,7 +941,7 @@ func getServiceLogs(service string, lines int) ([]string, error) {
}

func (api *ManagementAPI) GetWifiNetworks(w http.ResponseWriter, r *http.Request) {
networks, err := netmanagerclient.ListSavedWifiNetworks()
networks, err := netmanagerclient.ListUserSavedWifiNetworks()
if err != nil {
serverError(&w, err)
return
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ require (
)

require (
github.com/TheCacophonyProject/rpi-net-manager v0.2.1-deb12
github.com/TheCacophonyProject/rpi-net-manager v0.2.3-deb12
github.com/TheCacophonyProject/trap-controller v0.0.0-20230227002937-262a1adfaa47
golang.org/x/text v0.3.7
)
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ github.com/TheCacophonyProject/modemd v0.0.0-20190605010435-ae5b0f2eb760/go.mod
github.com/TheCacophonyProject/modemd v0.0.0-20190708011609-1940f5b6677b/go.mod h1:txGgnRinv6H0/jB4n71MpuS+2qtu8tAlntIjY5udXDU=
github.com/TheCacophonyProject/periph v2.1.1-0.20200615222341-6834cd5be8c1+incompatible h1:0pEn1FoMTgOZR3EkqOTiqd0++jOS/jWlGrbvOHK0/KM=
github.com/TheCacophonyProject/periph v2.1.1-0.20200615222341-6834cd5be8c1+incompatible/go.mod h1:K1wa07sGXKzV0G9p+4R069mZk4GOpqKW8GU6/k+BrIo=
github.com/TheCacophonyProject/rpi-net-manager v0.2.1-deb12 h1:BNlLP4gmwn516kXACoTon6ghuPZWGwNN4ukpH4THwpI=
github.com/TheCacophonyProject/rpi-net-manager v0.2.1-deb12/go.mod h1:6Xl1Dp7F8IyvufOv0O5EfoXQjqoA/qNLeoWh3Rv1Y0c=
github.com/TheCacophonyProject/rpi-net-manager v0.2.3-deb12 h1:wm/90HB7zFF+Kz7bBugGyFXkYTS8fxGO2EWa6sTk6po=
github.com/TheCacophonyProject/rpi-net-manager v0.2.3-deb12/go.mod h1:6Xl1Dp7F8IyvufOv0O5EfoXQjqoA/qNLeoWh3Rv1Y0c=
github.com/TheCacophonyProject/rtc-utils v1.2.0 h1:570sPJE/s0b21NrP9VVeSI/gBh/dLK+G5Ne/ZFwkNv0=
github.com/TheCacophonyProject/rtc-utils v1.2.0/go.mod h1:uV1SIy93TLZrrBcqDczUNFUz2G/Pk6pZNUdTRglmANU=
github.com/TheCacophonyProject/salt-updater v0.4.0 h1:2RCgdI4wr/ZoeWOvfGlZ/Epgz3GTC+Vc7/wS6EI90c0=
Expand Down
2 changes: 1 addition & 1 deletion management-interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ func WifiNetworkHandler(w http.ResponseWriter, r *http.Request) {
}
wifiProps := wifiProperties{}

wifiNetworks, err := netmanagerclient.ListSavedWifiNetworks()
wifiNetworks, err := netmanagerclient.ListUserSavedWifiNetworks()
if err != nil {
log.Println(err)
wifiProps.Error = err.Error()
Expand Down

0 comments on commit 52448df

Please sign in to comment.