Rename files to match guidelines

This commit is contained in:
Daniel 2024-02-03 12:39:15 +02:00
parent 19c99974e7
commit 6d7fe87192
5 changed files with 8 additions and 9 deletions

View file

@ -2,11 +2,11 @@
#define CHARGERS_H
#ifdef CHEVYVOLT_CHARGER
#include "chevyvolt.h"
#include "CHEVY-VOLT-CHARGER.h"
#endif
#ifdef NISSANLEAF_CHARGER
#include "nissanleaf.h"
#include "NISSAN-LEAF-CHARGER.h"
#endif
#endif

View file

@ -1,4 +1,4 @@
#include "chevyvolt.h"
#include "CHEVY-VOLT-CHARGER.h"
#include "../lib/miwagner-ESP32-Arduino-CAN/CAN_config.h"
#include "../lib/miwagner-ESP32-Arduino-CAN/ESP32CAN.h"

View file

@ -1,5 +1,5 @@
#ifndef CHEVYVOLT_H
#define CHEVYVOLT_H
#ifndef CHEVYVOLT_CHARGER_H
#define CHEVYVOLT_CHARGER_H
#include <Arduino.h>
#include "../../USER_SETTINGS.h"
#include "../lib/miwagner-ESP32-Arduino-CAN/ESP32CAN.h"

View file

@ -1,4 +1,4 @@
#include "nissanleaf.h"
#include "NISSAN-LEAF-CHARGER.h"
#include "../lib/miwagner-ESP32-Arduino-CAN/CAN_config.h"
#include "../lib/miwagner-ESP32-Arduino-CAN/ESP32CAN.h"

View file

@ -1,12 +1,11 @@
#ifndef NISSANLEAF_H
#define NISSANLEAF_H
#ifndef NISSANLEAF_CHARGER_H
#define NISSANLEAF_CHARGER_H
#include <Arduino.h>
#include "../../USER_SETTINGS.h"
#include "../lib/miwagner-ESP32-Arduino-CAN/ESP32CAN.h"
extern uint16_t battery_voltage; //V+1, 0-500.0 (0-5000)
void update_values_can_nissanleaf_charger();
void send_can_nissanleaf_charger();
void receive_can_nissanleaf_charger(CAN_frame_t rx_frame);
uint8_t calculate_CRC_Nissan(CAN_frame_t* frame);