mirror of
https://github.com/meshtastic/firmware.git
synced 2026-02-01 14:41:50 +00:00
Add portduino_status, assign hardware device IDs... (#9441)
* Add portduino_status, assign hardware device IDs, and try to recover a CH341 device on a USB error * Minor fixes suggested by Copilot
This commit is contained in:
@@ -1,15 +1,22 @@
|
||||
#pragma once
|
||||
#include <fstream>
|
||||
#include <map>
|
||||
#include <unistd.h>
|
||||
#include <unordered_map>
|
||||
#include <vector>
|
||||
|
||||
#include "LR11x0Interface.h"
|
||||
#include "Module.h"
|
||||
#include "mesh/generated/meshtastic/mesh.pb.h"
|
||||
#include "platform/portduino/USBHal.h"
|
||||
#include "yaml-cpp/yaml.h"
|
||||
|
||||
extern struct portduino_status_struct {
|
||||
bool LoRa_in_error = false;
|
||||
_meshtastic_HardwareModel hardwareModel = meshtastic_HardwareModel_PORTDUINO;
|
||||
} portduino_status;
|
||||
|
||||
#include "platform/portduino/USBHal.h"
|
||||
|
||||
// Product strings for auto-configuration
|
||||
// {"PRODUCT_STRING", "CONFIG.YAML"}
|
||||
// YAML paths are relative to `meshtastic/available.d`
|
||||
|
||||
Reference in New Issue
Block a user