mirror of
https://github.com/justcallmekoko/ESP32Marauder.git
synced 2025-12-22 23:26:45 -08:00
Single buffer_obj.append() with overloads
This commit is contained in:
@@ -103,14 +103,14 @@ void Buffer::add(const uint8_t* buf, uint32_t len, bool is_pcap){
|
||||
write(buf, len); // packet payload
|
||||
}
|
||||
|
||||
void Buffer::pcapAdd(wifi_promiscuous_pkt_t *packet, int len) {
|
||||
void Buffer::append(wifi_promiscuous_pkt_t *packet, int len) {
|
||||
bool save_packet = settings_obj.loadSetting<bool>(text_table4[7]);
|
||||
if (save_packet) {
|
||||
add(packet->payload, len, true);
|
||||
}
|
||||
}
|
||||
|
||||
void Buffer::logAdd(String log) {
|
||||
void Buffer::append(String log) {
|
||||
bool save_packet = settings_obj.loadSetting<bool>(text_table4[7]);
|
||||
if (save_packet) {
|
||||
add((const uint8_t*)log.c_str(), log.length(), false);
|
||||
|
||||
Reference in New Issue
Block a user