* Boot splash and more - Added developer sdkconfig - Refactored the way FreeRTOS includes are included - Improved Gui/Loader logic - Implemented boot app with splash screen * Updated naming for Gui and Loader services * Renamed Screenshot service methods * Renames * Service renames
28 lines
608 B
C++
28 lines
608 B
C++
#include "WifiManage.h"
|
|
|
|
namespace tt::app::wifimanage {
|
|
|
|
void state_set_scanning(WifiManage* wifi, bool is_scanning) {
|
|
lock(wifi);
|
|
wifi->state.scanning = is_scanning;
|
|
unlock(wifi);
|
|
}
|
|
|
|
void state_set_radio_state(WifiManage* wifi, service::wifi::WifiRadioState state) {
|
|
lock(wifi);
|
|
wifi->state.radio_state = state;
|
|
unlock(wifi);
|
|
}
|
|
|
|
void state_update_scanned_records(WifiManage* wifi) {
|
|
lock(wifi);
|
|
service::wifi::getScanResults(
|
|
wifi->state.ap_records,
|
|
WIFI_SCAN_AP_RECORD_COUNT,
|
|
&wifi->state.ap_records_count
|
|
);
|
|
unlock(wifi);
|
|
}
|
|
|
|
} // namespace
|