trunk fmt

This commit is contained in:
Thomas Göttgens 2024-03-08 13:22:06 +01:00
parent a9fc31c026
commit a7c0109349
5 changed files with 34 additions and 32 deletions

View File

@ -33,7 +33,8 @@ const OSFS::result noerr = OSFS::result::NO_ERROR;
const OSFS::result notfound = OSFS::result::FILE_NOT_FOUND; const OSFS::result notfound = OSFS::result::FILE_NOT_FOUND;
// 3) How do I read from the medium? // 3) How do I read from the medium?
void OSFS::readNBytes(uint16_t address, unsigned int num, byte* output) { void OSFS::readNBytes(uint16_t address, unsigned int num, byte *output)
{
for (uint16_t i = address; i < address + num; i++) { for (uint16_t i = address; i < address + num; i++) {
*output = EEPROM.read(i); *output = EEPROM.read(i);
output++; output++;
@ -41,7 +42,8 @@ void OSFS::readNBytes(uint16_t address, unsigned int num, byte* output) {
} }
// 4) How to I write to the medium? // 4) How to I write to the medium?
void OSFS::writeNBytes(uint16_t address, unsigned int num, const byte* input) { void OSFS::writeNBytes(uint16_t address, unsigned int num, const byte *input)
{
for (uint16_t i = address; i < address + num; i++) { for (uint16_t i = address; i < address + num; i++) {
EEPROM.update(i, *input); EEPROM.update(i, *input);
input++; input++;

View File

@ -3,8 +3,8 @@
#include "CryptoEngine.h" #include "CryptoEngine.h"
#include "MeshRadio.h" #include "MeshRadio.h"
#include "NodeDB.h" #include "NodeDB.h"
#include "gps/RTC.h"
#include "configuration.h" #include "configuration.h"
#include "gps/RTC.h"
#include "main.h" #include "main.h"
#include "mesh-pb-constants.h" #include "mesh-pb-constants.h"
#include "modules/RoutingModule.h" #include "modules/RoutingModule.h"

View File

@ -2,12 +2,12 @@
#include "GPS.h" #include "GPS.h"
#include "MeshService.h" #include "MeshService.h"
#include "NodeDB.h" #include "NodeDB.h"
#include "gps/RTC.h"
#include "Router.h" #include "Router.h"
#include "TypeConversions.h" #include "TypeConversions.h"
#include "airtime.h" #include "airtime.h"
#include "configuration.h" #include "configuration.h"
#include "gps/GeoCoord.h" #include "gps/GeoCoord.h"
#include "gps/RTC.h"
#include "main.h" #include "main.h"
#include "meshtastic/atak.pb.h" #include "meshtastic/atak.pb.h"
#include "sleep.h" #include "sleep.h"