Ble spam improvements (#1626)

* Much faster ble  spam tx
* Better Android handling
This commit is contained in:
Totoo 2023-12-09 09:24:02 +01:00 committed by GitHub
parent 60d95447fb
commit ff882024d4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 46 additions and 26 deletions

View file

@ -145,17 +145,19 @@ class BLESpamView : public View {
void createSamsungPacket();
void createWindowsPacket();
void changePacket(bool forced);
void on_timer();
void on_tx_progress(const bool done);
uint64_t get_freq_by_channel_number(uint8_t channel_number);
void randomizeMac();
void randomChn();
void furi_hal_random_fill_buf(uint8_t* buf, uint32_t len);
MessageHandlerRegistration message_handler_frame_sync{
Message::ID::DisplayFrameSync,
[this](const Message* const) {
this->on_timer();
MessageHandlerRegistration message_handler_tx_progress{
Message::ID::TXProgress,
[this](const Message* const p) {
const auto message = *reinterpret_cast<const TXProgressMessage*>(p);
this->on_tx_progress(message.done);
}};
// continuity