Skip to content

Commit

Permalink
anpassungen für platformio
Browse files Browse the repository at this point in the history
  • Loading branch information
Ralf9 committed Jul 6, 2021
1 parent 16a64e5 commit 8474afb
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 12 deletions.
15 changes: 13 additions & 2 deletions SIGNALduinoAdv/SIGNALduinoAdv.ino
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,10 @@
*/

#include "compile_config.h"
#include <Arduino.h>

#define PROGNAME " SIGNALduinoAdv "
#define PROGVERS "4.2.0-dev210628"
#define PROGVERS "4.2.1-dev210706"
#define VERSION_1 0x41
#define VERSION_2 0x2d

Expand Down Expand Up @@ -311,6 +312,8 @@ void getRxFifo(uint16_t Boffs);
void print_bank_sum();
void print_Bank();
void en_dis_receiver(bool en_receiver);
void getEthernetConfig(bool flag);
void initEthernetConfig();
void initEEPROM();
void initEEPROMconfig();
void serialEvent();
Expand All @@ -324,6 +327,9 @@ void printHex2(const uint8_t hex);
void setHasCC1101(uint8_t val);

//--- platform specific forwards @ main ------------------------------------------
#ifdef LAN_WIZ
void ethernetLoop();
#endif
#ifdef ESP32
inline void WiFiEvent();
void IRAM_ATTR cronjob(void *pArg);
Expand Down Expand Up @@ -2158,7 +2164,12 @@ void cmd_uptime() // t: Uptime
//--------------------------------------------------------------------------------
void cmd_test()
{
unsuppCmd = true;
#ifdef ARDUINO
MSG_PRINT("a=");
MSG_PRINTLN(ARDUINO);
#else
unsuppCmd = true;
#endif
}

//--------------------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion SIGNALduinoAdv/compile_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
//#define MAPLE_SDUINO 1
//#define MAPLE_CUL 1
//#define BLACK_BOARD 1 // 1 - USB, 2 - serial USART2 fuer ESP
#define SIGNALESP32 1
//#define SIGNALESP32 1
//#define EVIL_CROW_RF 1
//#define ESP32_SDUINO_TEST 1

Expand Down
9 changes: 4 additions & 5 deletions SIGNALduinoAdv/signalDecoder4.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -623,7 +623,7 @@ void SignalDetectorClass::processMessage(const uint8_t p_valid)
#endif
}
else {
char msbuf[15];
char msbuf[20];
uint8_t idx;

if (MsMoveCount == 0) {
Expand Down Expand Up @@ -689,7 +689,7 @@ void SignalDetectorClass::processMessage(const uint8_t p_valid)
msEqCnt++;
}
if (MsEqSkip == 0) {
MSG_WRITE(buf,n);
MSG_WRITE((const uint8_t *)buf,n);

n = sprintf(msbuf, ";CP=%x;SP=%x;", clock, sync); // ClockPulse & SyncPulse
MSG_PRINT(msbuf);
Expand Down Expand Up @@ -1114,7 +1114,7 @@ void SignalDetectorClass::processMessage(const uint8_t p_valid)
buf[i] = (n >> 4) + '0';
buf[i+1] = (n & 15) + '0';
}
MSG_WRITE(buf,maxi);
MSG_WRITE((const uint8_t *)buf,maxi);
}
}
else {
Expand Down Expand Up @@ -1699,7 +1699,7 @@ void ManchesterpatternDecoder::printBufMessageHexStr()
pdec->buf[i] = hex[n & 0x0F];
i++;
}
MSG_WRITE(pdec->buf,i);
MSG_WRITE((const uint8_t *)pdec->buf,i);
}


Expand Down Expand Up @@ -2333,4 +2333,3 @@ const bool ManchesterpatternDecoder::isManchester()
}
return false;
}

3 changes: 1 addition & 2 deletions SIGNALduinoAdv/signalDecoder4.h
Original file line number Diff line number Diff line change
Expand Up @@ -214,8 +214,8 @@ class ManchesterpatternDecoder
SignalDetectorClass *pdec;
int8_t longlow;
int8_t longhigh;
int8_t shortlow;
int8_t shorthigh;
int8_t shortlow;
int16_t clock; // Manchester calculated clock
int8_t minbitlen;
uint16_t mc_sync_pos;
Expand All @@ -229,4 +229,3 @@ class ManchesterpatternDecoder


#endif

6 changes: 4 additions & 2 deletions SIGNALduinoAdv/tools.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@

#ifndef MAPLE_Mini
#include <EEPROM.h>
#elif defined(MAPLE_Mini) and ARDUINO > 190
#include <EEPROM.h>
//#elif defined(MAPLE_Mini) and ARDUINO > 190
//#include <EEPROM.h>
#endif

#include <Arduino.h>

extern uint16_t bankOffset;
extern String cmdstring;

Expand Down

0 comments on commit 8474afb

Please sign in to comment.