Crash protection. part I

This commit is contained in:
2025-12-20 01:23:57 +01:00
parent 826e506d00
commit 554c4a96cb
11 changed files with 202 additions and 219 deletions

12
bc.h
View File

@@ -35,7 +35,7 @@
#include <QDebug>
#include <QObject> // Nötig für Q_GADGET/Q_ENUM Makros
namespace cbc
namespace bc
{
[[maybe_unused]] constexpr static double UNLIMITED_SPEED_VALUE = 70; // Km/h
// UNLIMITED_MIN_SPEED_VALUE = 30; // Km/h
@@ -63,9 +63,10 @@ namespace cbc
void delay_seconds( uint32_t );
void delay_millis( uint32_t );
void delay_micros( uint32_t );
void processEventsFor(int milliseconds);
QString formatInt( int count, int len );
} // namespace cbc
} // namespace bc
// abbreviations:
// SOC = State Of Charge
@@ -102,6 +103,13 @@ struct BC
public:
enum class OpID : uint8_t
{
ReadValue,
WriteValue,
};
Q_ENUM(OpID)
enum class ID : uint8_t
{
//{%Region Console}