<commit_before>#include "ModTemplate.h"

CModTemplate::CModTemplate(void)
{
  //nothing
}

void CModTemplate::Begin(void)
{
  // gets and increments the mod counter for a unique mod id
  ModNo = Global.ModCount;
  Global.ModCount++;

  LoadData();
}

void CModTemplate::LoadData(void)
{
  // loads the EEPROM start address for the mod
  byte firstByte = EEPROM.read(MEM_DYNAMIC_ADDR + ModNo * 2);
  byte secondByte = EEPROM.read(MEM_DYNAMIC_ADDR + ModNo * 2 + 1);
  EEPROMAddress = (firstByte << 8) | secondByte;
}

void CModTemplate::Loop(void)
{
  //nothing
  SerialComms(Comms.mode);
}

void CModTemplate::SerialComms(byte mode)
{
  //nothing
}

void CModTemplate::PressCoords(byte x, byte y)
{

}

void CModTemplate::PrePress(byte val, byte type)
{
  //nothing
}
void CModTemplate::PressKey(byte val, byte type)
{
  //nothing
}
void CModTemplate::ReleaseKey(byte val, byte type)
{
  //nothing
}

void CModTemplate::PrintMods()
{
  Serial.write(ModGUID);
}

byte CModTemplate::GetData(short addr)
{
  byte firstByte = EEPROM.read(MEM_DYNAMIC_ADDR + ModNo * 2);
  byte secondByte = EEPROM.read(MEM_DYNAMIC_ADDR + ModNo * 2 + 1);
  Serial.println(firstByte);
  Serial.println(secondByte);
  Serial.println(EEPROMAddress);
  return EEPROM.read(EEPROMAddress + addr);
}

void CModTemplate::SetData(short addr, byte data)
{
  EEPROM.update(EEPROMAddress + addr, data);
}
void CModTemplate::End(void)
{
  //nothing
}

CModTemplate ModTemplate;
<commit_msg>remove: module system debug message<commit_after>#include "ModTemplate.h"

CModTemplate::CModTemplate(void)
{
  //nothing
}

void CModTemplate::Begin(void)
{
  // gets and increments the mod counter for a unique mod id
  ModNo = Global.ModCount;
  Global.ModCount++;

  LoadData();
}

void CModTemplate::LoadData(void)
{
  // loads the EEPROM start address for the mod
  byte firstByte = EEPROM.read(MEM_DYNAMIC_ADDR + ModNo * 2);
  byte secondByte = EEPROM.read(MEM_DYNAMIC_ADDR + ModNo * 2 + 1);
  EEPROMAddress = (firstByte << 8) | secondByte;
}

void CModTemplate::Loop(void)
{
  //nothing
  SerialComms(Comms.mode);
}

void CModTemplate::SerialComms(byte mode)
{
  //nothing
}

void CModTemplate::PressCoords(byte x, byte y)
{

}

void CModTemplate::PrePress(byte val, byte type)
{
  //nothing
}
void CModTemplate::PressKey(byte val, byte type)
{
  //nothing
}
void CModTemplate::ReleaseKey(byte val, byte type)
{
  //nothing
}

void CModTemplate::PrintMods()
{
  Serial.write(ModGUID);
}

byte CModTemplate::GetData(short addr)
{
  byte firstByte = EEPROM.read(MEM_DYNAMIC_ADDR + ModNo * 2);
  byte secondByte = EEPROM.read(MEM_DYNAMIC_ADDR + ModNo * 2 + 1);
  return EEPROM.read(EEPROMAddress + addr);
}

void CModTemplate::SetData(short addr, byte data)
{
  EEPROM.update(EEPROMAddress + addr, data);
}
void CModTemplate::End(void)
{
  //nothing
}

CModTemplate ModTemplate;

{'fraction_non_alphanumeric': 0.1279971791255289, 'fraction_numerical': 0.004936530324400564, 'mean_word_length': 4.6626746506986025, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '395447', 'n_tokens_mistral': 1102, 'n_tokens_neox': 1019, 'n_words': 227}