Refactor uint8_t to uint32_t

This commit is contained in:
Theo Arends 2022-11-11 10:44:56 +01:00
parent 6f00b455e7
commit c1ea8953cb
241 changed files with 321 additions and 310 deletions

View File

@ -3689,7 +3689,7 @@ void CmndCors(void)
* Interface
\*********************************************************************************************/
bool Xdrv01(uint8_t function)
bool Xdrv01(uint32_t function)
{
bool result = false;

View File

@ -2003,7 +2003,7 @@ void MqttSaveSettings(void) {
* Interface
\*********************************************************************************************/
bool Xdrv02(uint8_t function)
bool Xdrv02(uint32_t function)
{
bool result = false;

View File

@ -1384,7 +1384,7 @@ void EnergyShow(bool json) {
* Interface
\*********************************************************************************************/
bool Xdrv03(uint8_t function)
bool Xdrv03(uint32_t function)
{
bool result = false;
@ -1420,7 +1420,7 @@ bool Xdrv03(uint8_t function)
return result;
}
bool Xsns03(uint8_t function)
bool Xsns03(uint32_t function)
{
bool result = false;

View File

@ -3395,7 +3395,7 @@ void CmndUndocA(void)
* Interface
\*********************************************************************************************/
bool Xdrv04(uint8_t function)
bool Xdrv04(uint32_t function)
{
bool result = false;

View File

@ -416,7 +416,7 @@ void IrRemoteCmndResponse(uint32_t error)
* Interface
\*********************************************************************************************/
bool Xdrv05(uint8_t function)
bool Xdrv05(uint32_t function)
{
bool result = false;

View File

@ -852,7 +852,7 @@ void IrInit(void) {
* Interface
\*********************************************************************************************/
bool Xdrv05(uint8_t function)
bool Xdrv05(uint32_t function)
{
bool result = false;

View File

@ -128,6 +128,9 @@ uint8_t rf_erase_flash(void) {
}
err = c2_device_erase();
if (err != C2_SUCCESS) {
// AddLog(LOG_LEVEL_DEBUG, PSTR("RFB: Device erase error %d"), err);
if (i < 3) {
c2_reset(); // Reset RF chip and try again
} else {
@ -535,7 +538,7 @@ void SonoffBridgeWebGetArg(void) {
* Interface
\*********************************************************************************************/
bool Xdrv06(uint8_t function)
bool Xdrv06(uint32_t function)
{
bool result = false;

View File

@ -641,7 +641,7 @@ void DomoticzSaveSettings(void) {
* Interface
\*********************************************************************************************/
bool Xdrv07(uint8_t function) {
bool Xdrv07(uint32_t function) {
bool result = false;
if (Settings->flag.mqtt_enabled) { // SetOption3 - Enable MQTT

View File

@ -284,7 +284,7 @@ void CmndSSerialConfig(void) {
* Interface
\*********************************************************************************************/
bool Xdrv08(uint8_t function) {
bool Xdrv08(uint32_t function) {
bool result = false;
if (FUNC_PRE_INIT == function) {

View File

@ -946,7 +946,7 @@ void TimerSaveSettings(void)
* Interface
\*********************************************************************************************/
bool Xdrv09(uint8_t function)
bool Xdrv09(uint32_t function)
{
bool result = false;

View File

@ -2441,7 +2441,7 @@ float map_double(float x, float in_min, float in_max, float out_min, float out_m
* Interface
\*********************************************************************************************/
bool Xdrv10(uint8_t function)
bool Xdrv10(uint32_t function)
{
bool result = false;

View File

@ -11116,7 +11116,7 @@ void script_add_subpage(uint8_t num) {
bool Xdrv10(uint8_t function)
bool Xdrv10(uint32_t function)
{
bool result = false;
glob_script_mem.event_handeled = false;

View File

@ -1298,7 +1298,7 @@ void CmndKnxCb(void)
* Interface
\*********************************************************************************************/
bool Xdrv11(uint8_t function)
bool Xdrv11(uint32_t function)
{
bool result = false;
switch (function) {

View File

@ -1,5 +1,5 @@
/*
xdrv_99_debug.ino - debug support for Tasmota
xdrv_127_debug.ino - debug support for Tasmota
Copyright (C) 2021 Theo Arends
@ -32,7 +32,7 @@
* Needs file zzzz_debug.ino due to DEFINE processing
\*********************************************************************************************/
#define XDRV_99 99
#define XDRV_127 127
#ifndef CPU_LOAD_CHECK
#define CPU_LOAD_CHECK 1 // Seconds between each CPU_LOAD log
@ -46,6 +46,7 @@
#define D_CMND_CFGDUMP "CfgDump"
#define D_CMND_CFGPEEK "CfgPeek"
#define D_CMND_CFGPOKE "CfgPoke"
#define D_CMND_SHOWHEAP "ShowHeap"
#define D_CMND_CFGXOR "CfgXor"
#define D_CMND_CPUCHECK "CpuChk"
#define D_CMND_EXCEPTION "Exception"
@ -62,6 +63,11 @@
const char kDebugCommands[] PROGMEM = "|" // No prefix
D_CMND_MEMDUMP "|" D_CMND_CFGDUMP "|" D_CMND_CFGPEEK "|" D_CMND_CFGPOKE "|"
#ifdef ESP8266
#ifdef UMM_INLINE_METRICS
D_CMND_SHOWHEAP "|"
#endif
#endif
#ifdef USE_WEBSERVER
D_CMND_CFGXOR "|"
#endif
@ -77,6 +83,11 @@ const char kDebugCommands[] PROGMEM = "|" // No prefix
void (* const DebugCommand[])(void) PROGMEM = {
&CmndMemDump, &CmndCfgDump, &CmndCfgPeek, &CmndCfgPoke,
#ifdef ESP8266
#ifdef UMM_INLINE_METRICS
&CmndShowHeap,
#endif
#endif
#ifdef USE_WEBSERVER
&CmndCfgXor,
#endif
@ -355,7 +366,6 @@ void DebugDump(uint32_t start, uint32_t size) {
}
}
void DebugCfgDump(char* parms)
{
uint32_t CFG_COLS = 16;
@ -522,6 +532,15 @@ void CmndCfgPoke(void)
ResponseCmndDone();
}
#ifdef ESP8266
#ifdef UMM_INLINE_METRICS
void CmndShowHeap(void) {
system_show_malloc();
ResponseCmndDone();
}
#endif
#endif
#ifdef USE_WEBSERVER
void CmndCfgXor(void)
{
@ -709,7 +728,7 @@ void CmndI2cClock(void)
* Interface
\*********************************************************************************************/
bool Xdrv99(uint8_t function)
bool Xdrv127(uint32_t function)
{
bool result = false;

View File

@ -298,7 +298,7 @@ void CmndTasDiscover(void) {
* Interface
\*********************************************************************************************/
bool Xdrv12(uint8_t function) {
bool Xdrv12(uint32_t function) {
bool result = false;
if (Settings->flag.mqtt_enabled) { // SetOption3 - Enable MQTT

View File

@ -1271,7 +1271,7 @@ void HassLwtSubscribe(bool hasslwt)
* Interface
\*********************************************************************************************/
bool Xdrv12(uint8_t function)
bool Xdrv12(uint32_t function)
{
bool result = false;
bool hasslwt = HOME_ASSISTANT_LWT_SUBSCRIBE;

View File

@ -2787,7 +2787,7 @@ void AddValue(uint8_t num,float fval) {
* Interface
\*********************************************************************************************/
bool Xdrv13(uint8_t function)
bool Xdrv13(uint32_t function)
{
bool result = false;

View File

@ -395,7 +395,7 @@ if (PinUsed(GPIO_MP3_DFR562_BUSY)) // optional MP3 player busy pi
* Interface
\*********************************************************************************************/
bool Xdrv14(uint8_t function)
bool Xdrv14(uint32_t function)
{
bool result = false;

View File

@ -207,7 +207,7 @@ void PCA9685_OutputTelemetry(bool telemetry)
}
}
bool Xdrv15(uint8_t function)
bool Xdrv15(uint32_t function)
{
if (!I2cEnabled(XI2C_01)) { return false; }

View File

@ -1535,7 +1535,7 @@ void TuyaAddButton(void) {
#ifdef USE_ENERGY_SENSOR
bool Xnrg32(uint8_t function)
bool Xnrg32(uint32_t function)
{
bool result = false;
@ -1556,7 +1556,7 @@ bool Xnrg32(uint8_t function)
}
#endif // USE_ENERGY_SENSOR
bool Xdrv16(uint8_t function) {
bool Xdrv16(uint32_t function) {
bool result = false;
if (FUNC_MODULE_INIT == function) {

View File

@ -229,7 +229,7 @@ void CmndRfTimeOut(void) {
* Interface
\*********************************************************************************************/
bool Xdrv17(uint8_t function)
bool Xdrv17(uint32_t function)
{
bool result = false;

View File

@ -164,7 +164,7 @@ void ArmtronixSetWifiLed(void)
* Interface
\*********************************************************************************************/
bool Xdrv18(uint8_t function)
bool Xdrv18(uint32_t function)
{
bool result = false;

View File

@ -206,7 +206,7 @@ bool PS16DZModuleSelected(void)
* Interface
\*********************************************************************************************/
bool Xdrv19(uint8_t function)
bool Xdrv19(uint32_t function)
{
bool result = false;

View File

@ -1149,7 +1149,7 @@ void HandleHueApi(String *path)
* Interface
\*********************************************************************************************/
bool Xdrv20(uint8_t function)
bool Xdrv20(uint32_t function)
{
bool result = false;

View File

@ -342,7 +342,7 @@ void HandleUpnpSetupWemo(void)
* Interface
\*********************************************************************************************/
bool Xdrv21(uint8_t function)
bool Xdrv21(uint32_t function)
{
bool result = false;

View File

@ -427,7 +427,7 @@ void WemoRespondToMSearch(int echo_type) {
* Interface
\*********************************************************************************************/
bool Xdrv21(uint8_t function)
bool Xdrv21(uint32_t function)
{
bool result = false;

View File

@ -244,7 +244,7 @@ void SonoffIfanUpdate(void)
* Interface
\*********************************************************************************************/
bool Xdrv22(uint8_t function)
bool Xdrv22(uint32_t function)
{
bool result = false;

View File

@ -2377,7 +2377,7 @@ void ZigbeeShowMap(void) {
* Interface
\*********************************************************************************************/
bool Xdrv23(uint8_t function) {
bool Xdrv23(uint32_t function) {
if (TasmotaGlobal.gpio_optiona.enable_ccloader) { return false; }
bool result = false;

View File

@ -229,7 +229,7 @@ void CmndBuzzer(void) {
* Interface
\*********************************************************************************************/
bool Xdrv24(uint8_t function) {
bool Xdrv24(uint32_t function) {
bool result = false;
if (Buzzer.active) {

View File

@ -119,7 +119,7 @@ void CmndSetRPM(void) {
/*********************************************************************************************\
* Interface
\*********************************************************************************************/
bool Xdrv25(uint8_t function)
bool Xdrv25(uint32_t function)
{
bool result = false;
if (PinUsed(GPIO_A4988_DIR) && PinUsed(GPIO_A4988_STP)) {

View File

@ -170,7 +170,7 @@ void AriluxRfDisable(void)
* Interface
\*********************************************************************************************/
bool Xdrv26(uint8_t function)
bool Xdrv26(uint32_t function)
{
bool result = false;

View File

@ -1718,7 +1718,7 @@ void CmndShutterTiltIncDec(void)
* Interface
\*********************************************************************************************/
bool Xdrv27(uint8_t function)
bool Xdrv27(uint32_t function)
{
bool result = false;

View File

@ -308,7 +308,7 @@ void Pcf8574SaveSettings(void)
* Interface
\*********************************************************************************************/
bool Xdrv28(uint8_t function)
bool Xdrv28(uint32_t function)
{
if (!I2cEnabled(XI2C_02)) { return false; }

View File

@ -205,7 +205,7 @@ void CmndDeepsleepTime(void)
* Interface
\*********************************************************************************************/
bool Xdrv29(uint8_t function)
bool Xdrv29(uint32_t function)
{
bool result = false;

View File

@ -585,7 +585,7 @@ void CmndExsState(void)
* Interface
*/
bool Xdrv30(uint8_t function)
bool Xdrv30(uint32_t function)
{
bool result = false;

View File

@ -531,7 +531,7 @@ void TasmotaClient_ProcessIn(void) {
* Interface
\*********************************************************************************************/
bool Xdrv31(uint8_t function) {
bool Xdrv31(uint32_t function) {
bool result = false;
switch (function) {

View File

@ -80,7 +80,7 @@ void CmndHotPlugTime(void)
* Interface
\*********************************************************************************************/
bool Xdrv32(uint8_t function)
bool Xdrv32(uint32_t function)
{
bool result = false;

View File

@ -80,7 +80,7 @@ void NRF24Detect(void) {
* Interface
\*********************************************************************************************/
bool Xdrv33(uint8_t function) {
bool Xdrv33(uint32_t function) {
bool result = false;
if (FUNC_INIT == function) {

View File

@ -268,7 +268,7 @@ void WMotorV2command(uint8_t *data, uint8_t len) // process V2 request
* Interface
\*********************************************************************************************/
bool Xdrv34(uint8_t function)
bool Xdrv34(uint32_t function)
{
if (!I2cEnabled(XI2C_44)) { return false; }

View File

@ -790,7 +790,7 @@ void CmndPWMDimmerPWMs(void)
* Interface
\*********************************************************************************************/
bool Xdrv35(uint8_t function)
bool Xdrv35(uint32_t function)
{
bool result = false;

View File

@ -261,7 +261,7 @@ void KeeloqInit()
/*********************************************************************************************\
* Interface
\*********************************************************************************************/
bool Xdrv36(uint8_t function)
bool Xdrv36(uint32_t function)
{
if (!PinUsed(GPIO_CC1101_GDO0) || !PinUsed(GPIO_CC1101_GDO2)) { return false; }

View File

@ -173,7 +173,7 @@ bool SonoffD1ModuleSelected(void)
* Interface
\*********************************************************************************************/
bool Xdrv37(uint8_t function)
bool Xdrv37(uint32_t function)
{
bool result = false;

View File

@ -365,7 +365,7 @@ void CmndPing(void) {
* Interface
\*********************************************************************************************/
bool Xdrv38(uint8_t function)
bool Xdrv38(uint32_t function)
{
bool result = false;

View File

@ -2084,7 +2084,7 @@ void ThermostatShow(uint8_t ctr_output, bool json)
* Interface
\*********************************************************************************************/
bool Xdrv39(uint8_t function)
bool Xdrv39(uint32_t function)
{
bool result = false;
uint8_t ctr_output;

View File

@ -476,7 +476,7 @@ void CmndTmSend(void) {
* Interface
\*********************************************************************************************/
bool Xdrv40(uint8_t function)
bool Xdrv40(uint32_t function)
{
bool result = false;

View File

@ -277,7 +277,7 @@ void CmndTCPConnect(void) {
* Interface
\*********************************************************************************************/
bool Xdrv41(uint8_t function)
bool Xdrv41(uint32_t function)
{
bool result = false;

View File

@ -679,7 +679,7 @@ void i2s_mp3_loop(void);
void i2s_mp3_init(void);
void MP3ShowStream(void);
bool Xdrv42(uint8_t function) {
bool Xdrv42(uint32_t function) {
bool result = false;
switch (function) {

View File

@ -591,7 +591,7 @@ void MLX90640Show(uint8_t json)
* Interface
\*********************************************************************************************/
bool Xdrv43(uint8_t function)
bool Xdrv43(uint32_t function)
{
bool result = false;

View File

@ -1285,7 +1285,7 @@ static void (*const miel_hvac_cmnds[])(void) PROGMEM = {
#endif
};
bool Xdrv44(uint8_t function) {
bool Xdrv44(uint32_t function) {
bool result = false;
struct miel_hvac_softc *sc = miel_hvac_sc;

View File

@ -831,7 +831,7 @@ void CmndShdWarmupTime(void)
\*********************************************************************************************/
#ifdef USE_ENERGY_SENSOR
bool Xnrg31(uint8_t function) {
bool Xnrg31(uint32_t function) {
bool result = false;
if (Shd.present) {
@ -852,7 +852,7 @@ bool Xnrg31(uint8_t function) {
* Driver Interface
\*********************************************************************************************/
bool Xdrv45(uint8_t function) {
bool Xdrv45(uint32_t function) {
bool result = false;
if (FUNC_MODULE_INIT == function) {

View File

@ -671,7 +671,7 @@ void CCLoadershow(bool json) {
* Interface
\*********************************************************************************************/
bool Xdrv46(uint8_t function) {
bool Xdrv46(uint32_t function) {
if (!TasmotaGlobal.gpio_optiona.enable_ccloader) { return false; }
bool result = false;

View File

@ -215,7 +215,7 @@ void ftc532_publish(void) {
* Interface
\*********************************************************************************************/
bool Xdrv47(uint8_t function) {
bool Xdrv47(uint32_t function) {
bool result = false;
if (FUNC_INIT == function) {

View File

@ -224,7 +224,7 @@ bool TimepropCommand()
#define XDRV_48 48
bool Xdrv48(byte function) {
bool Xdrv48(uint32_t function) {
bool result = false;
switch (function) {

View File

@ -420,7 +420,7 @@ void PIDRun(void) {
#define XDRV_49 49
bool Xdrv49(byte function) {
bool Xdrv49(uint32_t function) {
bool result = false;
switch (function) {

View File

@ -1109,7 +1109,7 @@ void UfsEditorUpload(void) {
* Interface
\*********************************************************************************************/
bool Xdrv50(uint8_t function) {
bool Xdrv50(uint32_t function) {
bool result = false;
switch (function) {

View File

@ -166,7 +166,7 @@ void bs814_publish(void) {
* Interface
\*********************************************************************************************/
bool Xdrv51(uint8_t function) {
bool Xdrv51(uint32_t function) {
bool result = false;
if (FUNC_INIT == function) {

View File

@ -715,7 +715,7 @@ void HandleBerryConsole(void)
/*********************************************************************************************\
* Interface
\*********************************************************************************************/
bool Xdrv52(uint8_t function)
bool Xdrv52(uint32_t function)
{
bool result = false;

View File

@ -439,7 +439,7 @@ projector_ctrl_set_power(struct projector_ctrl_softc_s *sc)
* Interface
\*********************************************************************************************/
bool Xdrv53(uint8_t function) {
bool Xdrv53(uint32_t function) {
bool result;
struct projector_ctrl_softc_s *sc;

View File

@ -433,7 +433,7 @@ void start_lvgl(const char * uconfig) {
/*********************************************************************************************\
* Interface
\*********************************************************************************************/
bool Xdrv54(uint8_t function)
bool Xdrv54(uint32_t function)
{
bool result = false;

View File

@ -459,7 +459,7 @@ void TS_RotConvert(int16_t *x, int16_t *y) {
/*********************************************************************************************\
* Interface
\*********************************************************************************************/
bool Xdrv55(uint8_t function) {
bool Xdrv55(uint32_t function) {
bool result = false;
switch (function) {

View File

@ -432,7 +432,7 @@ void CmndRtcNtpServer(void) {
* Interface
\*********************************************************************************************/
bool Xdrv56(uint8_t function) {
bool Xdrv56(uint32_t function) {
bool result = false;
#ifdef RTC_NTP_SERVER

View File

@ -814,7 +814,7 @@ void CmndMeshInterval(void) {
* Interface
\*********************************************************************************************/
bool Xdrv57(uint8_t function) {
bool Xdrv57(uint32_t function) {
bool result = false;
switch (function) {

View File

@ -344,7 +344,7 @@ void rngxSetupNAPT(void)
* Interface
\*********************************************************************************************/
bool Xdrv58(uint8_t function)
bool Xdrv58(uint32_t function)
{
bool result = false;

View File

@ -561,7 +561,7 @@ void CmndInfluxDbPeriod(void) {
* Interface
\*********************************************************************************************/
bool Xdrv59(uint8_t function) {
bool Xdrv59(uint32_t function) {
bool result = false;
if (FUNC_PRE_INIT == function) {

View File

@ -98,7 +98,7 @@ void CmndShift595Devices(void) {
* Interface
\*********************************************************************************************/
bool Xdrv60(uint8_t function) {
bool Xdrv60(uint32_t function) {
bool result = false;
if (FUNC_PRE_INIT == function) {

View File

@ -73,7 +73,7 @@ void CmndWiper(void) {
* Interface
\*********************************************************************************************/
bool Xdrv61(uint8_t function) {
bool Xdrv61(uint32_t function) {
if (!I2cEnabled(XI2C_67)) { return false; }
bool result = false;

View File

@ -340,7 +340,7 @@ void ImprovInit(void) {
* Interface
\*********************************************************************************************/
bool Xdrv62(uint8_t function) {
bool Xdrv62(uint32_t function) {
bool result = false;
switch (function) {

View File

@ -1119,7 +1119,7 @@ void CmndModbusTCPConnect(void)
* Interface
\*********************************************************************************************/
bool Xdrv63(uint8_t function)
bool Xdrv63(uint32_t function)
{
bool result = false;

View File

@ -3583,7 +3583,7 @@ int ExtRestartBLEIfEnabled(){
return 0;
}
bool Xdrv79(uint8_t function)
bool Xdrv79(uint32_t function)
{
//if (!Settings->flag5.mi32_enable) { return false; } // SetOption115 - Enable ESP32 BLE BLE

View File

@ -1422,7 +1422,7 @@ void WcStatsShow(void) {
* Interface
\*********************************************************************************************/
bool Xdrv81(uint8_t function) {
bool Xdrv81(uint32_t function) {
bool result = false;
switch (function) {

View File

@ -297,7 +297,7 @@ void CmndEthSetIpConfig(void) {
* Interface
\*********************************************************************************************/
bool Xdrv82(uint8_t function) {
bool Xdrv82(uint32_t function) {
bool result = false;
switch (function) {

View File

@ -434,7 +434,7 @@ bool TTGO_button(void) {
* Interface
\*********************************************************************************************/
bool Xdrv83(uint8_t function) {
bool Xdrv83(uint32_t function) {
bool result = false;
switch (function) {

View File

@ -1745,7 +1745,7 @@ void EQ3DiscoveryOneEQ3(){
* Interface
\*********************************************************************************************/
bool Xdrv85(uint8_t function)
bool Xdrv85(uint32_t function)
{
bool result = false;

View File

@ -2631,7 +2631,7 @@ void CmndSSPMPowerOnState(void) {
* Interface
\*********************************************************************************************/
bool Xdrv86(uint8_t function) {
bool Xdrv86(uint32_t function) {
bool result = false;
if (FUNC_INIT == function) {

View File

@ -566,7 +566,7 @@ void CmndDspSpeed(void) {
* Interface
\*********************************************************************************************/
bool Xdrv87(uint8_t function) {
bool Xdrv87(uint32_t function) {
bool result = false;
if (FUNC_INIT == function) {

View File

@ -147,7 +147,7 @@ void ShellyProLedLinkWifiOff(void) {
* Interface
\*********************************************************************************************/
bool Xdrv88(uint8_t function) {
bool Xdrv88(uint32_t function) {
bool result = false;
if (FUNC_PRE_INIT == function) {

View File

@ -556,7 +556,7 @@ bool DaliJsonParse()
* Interface
\*********************************************************************************************/
bool Xdrv89(uint8_t function)
bool Xdrv89(uint32_t function)
{
bool result = false;

View File

@ -179,7 +179,7 @@ void DingtianShow(bool json)
* Interface
\*********************************************************************************************/
bool Xdrv90(uint8_t function) {
bool Xdrv90(uint32_t function) {
bool result = false;
if (FUNC_PRE_INIT == function) {

View File

@ -174,7 +174,7 @@ void DrvDemoSettingsSave(void) {
* Interface
\*********************************************************************************************/
bool Xdrv98(uint8_t function) {
bool Xdrv98(uint32_t function) {
bool result = false;
switch (function) {

View File

@ -197,7 +197,7 @@ void LcdRefresh(void) // Every second
* Interface
\*********************************************************************************************/
bool Xdsp01(uint8_t function)
bool Xdsp01(uint32_t function)
{
if (!I2cEnabled(XI2C_03)) { return false; }

View File

@ -167,8 +167,7 @@ void Ssd1306Refresh(void) // Every second
* Interface
\*********************************************************************************************/
bool Xdsp02(byte function)
{
bool Xdsp02(uint32_t function) {
if (!I2cEnabled(XI2C_04)) { return false; }
bool result = false;

View File

@ -333,7 +333,7 @@ void MatrixRefresh(void) // Every second
* Interface
\*********************************************************************************************/
bool Xdsp03(uint8_t function)
bool Xdsp03(uint32_t function)
{
if (!I2cEnabled(XI2C_05)) { return false; }

View File

@ -366,7 +366,7 @@ void ILI9341_Refresh(void) { // Every second
/*********************************************************************************************\
* Interface
\*********************************************************************************************/
bool Xdsp04(uint8_t function)
bool Xdsp04(uint32_t function)
{
bool result = false;

View File

@ -178,7 +178,7 @@ void EpdRefresh29(void) // Every second
* Interface
\*********************************************************************************************/
bool Xdsp05(uint8_t function)
bool Xdsp05(uint32_t function)
{
bool result = false;

View File

@ -118,7 +118,7 @@ void EpdRefresh42() // Every second
* Interface
\*********************************************************************************************/
bool Xdsp06(uint8_t function)
bool Xdsp06(uint32_t function)
{
bool result = false;

View File

@ -165,7 +165,7 @@ void SH1106Refresh(void) // Every second
* Interface
\*********************************************************************************************/
bool Xdsp07(uint8_t function)
bool Xdsp07(uint32_t function)
{
if (!I2cEnabled(XI2C_06)) { return false; }

View File

@ -153,7 +153,7 @@ void SSD1351Refresh(void) { // Every second
* Interface
\*********************************************************************************************/
bool Xdsp09(uint8_t function) {
bool Xdsp09(uint32_t function) {
bool result = false;
if (FUNC_DISPLAY_INIT_DRIVER == function) {

View File

@ -297,7 +297,7 @@ Serial.print("Text test took "); Serial.print(elapsedtime); Serial.println(" ms"
/*********************************************************************************************\
* Interface
\*********************************************************************************************/
bool Xdsp10(uint8_t function)
bool Xdsp10(uint32_t function)
{
bool result = false;

View File

@ -422,7 +422,7 @@ void SevensegRefresh(void) // Every second
* Interface
\*********************************************************************************************/
bool Xdsp11(uint8_t function)
bool Xdsp11(uint32_t function)
{
if (!I2cEnabled(XI2C_47)) { return false; }

View File

@ -176,7 +176,7 @@ st7789_ctouch_counter++;
/*********************************************************************************************\
* Interface
\*********************************************************************************************/
bool Xdsp12(uint8_t function)
bool Xdsp12(uint32_t function)
{
bool result = false;

View File

@ -169,7 +169,7 @@ void SSD1331Refresh(void) { // Every second
* Interface
\*********************************************************************************************/
bool Xdsp14(uint8_t function) {
bool Xdsp14(uint32_t function) {
bool result = false;
if (FUNC_DISPLAY_INIT_DRIVER == function) {

View File

@ -1284,7 +1284,7 @@ void TM1637Refresh(void)
* Interface
\*********************************************************************************************/
bool Xdsp15(uint8_t function)
bool Xdsp15(uint32_t function)
{
bool result = false;

View File

@ -278,7 +278,7 @@ void EPD47_CheckTouch(void) {
* Interface
\*********************************************************************************************/
bool Xdsp16(uint8_t function)
bool Xdsp16(uint32_t function)
{
bool result = false;

View File

@ -481,7 +481,7 @@ void UDISP_Refresh(void) // Every second
* Interface
\*********************************************************************************************/
bool Xdsp17(uint8_t function) {
bool Xdsp17(uint32_t function) {
bool result = false;
if (FUNC_DISPLAY_INIT_DRIVER == function) {

View File

@ -26,7 +26,7 @@
* Interface
\*********************************************************************************************/
bool Xdsp18(uint8_t function) {
bool Xdsp18(uint32_t function) {
bool result = false;
switch (function) {

View File

@ -305,7 +305,7 @@ bool MAX7291Matrix_showTime()
#endif // USE_DISPLAY_MODES1TO5
bool Xdsp19(uint8_t function)
bool Xdsp19(uint32_t function)
{
bool result = false;

View File

@ -771,7 +771,7 @@ void CmndWidth(void)
* Interface
\*********************************************************************************************/
bool Xlgt01(uint8_t function)
bool Xlgt01(uint32_t function)
{
bool result = false;

View File

@ -148,7 +148,7 @@ void My92x1ModuleSelected(void)
* Interface
\*********************************************************************************************/
bool Xlgt02(uint8_t function)
bool Xlgt02(uint32_t function)
{
bool result = false;

View File

@ -170,7 +170,7 @@ void Sm16716ModuleSelected(void)
* Interface
\*********************************************************************************************/
bool Xlgt03(uint8_t function)
bool Xlgt03(uint32_t function)
{
bool result = false;

View File

@ -70,7 +70,7 @@ enum Sm2135Color { SM2135_WCGRB, // 1 (4064) - Action LSC GRB (20mA) an
SM2135_WCBGR15W, // 6 (4069) - BGR (45mA) and CW (60mA)
SM2135_WCBRG_SETALL, // 7 (4070) - Fitop 10W RGBCCT BRG (15mA) and CW (40mA)
SM2135_RESERVED_8, // 8 (4071) - Reserved - currently fallsback to 2
SM2135_WCGRB_ALL, // 9 (4072) - GRB (20mA) and CW (15mA) like 1 but reset either RGB or CW
SM2135_WCGRB_ALL, // 9 (4072) - Qualitel GRB (20mA) and CW (15mA) like 1 but reset either RGB or CW
SM2135_WCBGR_ALL // 10 (4073) - BGR (20mA) and CW (15mA) like 2 but reset either RGB or CW
};
@ -227,7 +227,7 @@ void Sm2135ModuleSelected(void)
Sm2135.clk = Pin(GPIO_SM2135_CLK);
Sm2135.data = Pin(GPIO_SM2135_DAT, GPIO_ANY);
// See #define MAX_SM2135_DAT 7 in tasmota_template.h
// See #define MAX_SM2135_DAT 10 in tasmota_template.h
Sm2135.model = GetPin(Sm2135.data) - AGPIO(GPIO_SM2135_DAT); // 0 .. 9
// Legacy support of model selection
@ -271,7 +271,7 @@ void Sm2135ModuleSelected(void)
* Interface
\*********************************************************************************************/
bool Xlgt04(uint8_t function)
bool Xlgt04(uint32_t function)
{
bool result = false;

Some files were not shown because too many files have changed in this diff Show More