mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-27 20:56:35 +00:00
Merge pull request #6975 from s-hadinger/fix_dbg
Fix compilation error when USE_DEBUG_DRIVER and not USE_I2C
This commit is contained in:
commit
40b3d20e0d
@ -75,7 +75,10 @@ const char kDebugCommands[] PROGMEM = "|" // No prefix
|
|||||||
D_CMND_EXCEPTION "|"
|
D_CMND_EXCEPTION "|"
|
||||||
#endif
|
#endif
|
||||||
D_CMND_FLASHDUMP "|" D_CMND_FLASHMODE "|" D_CMND_FREEMEM"|" D_CMND_HELP "|" D_CMND_RTCDUMP "|" D_CMND_SETSENSOR "|"
|
D_CMND_FLASHDUMP "|" D_CMND_FLASHMODE "|" D_CMND_FREEMEM"|" D_CMND_HELP "|" D_CMND_RTCDUMP "|" D_CMND_SETSENSOR "|"
|
||||||
D_CMND_I2CWRITE "|" D_CMND_I2CREAD "|" D_CMND_I2CSTRETCH "|" D_CMND_I2CCLOCK ;
|
#ifdef USE_I2C
|
||||||
|
D_CMND_I2CWRITE "|" D_CMND_I2CREAD "|" D_CMND_I2CSTRETCH "|" D_CMND_I2CCLOCK
|
||||||
|
#endif
|
||||||
|
;
|
||||||
|
|
||||||
void (* const DebugCommand[])(void) PROGMEM = {
|
void (* const DebugCommand[])(void) PROGMEM = {
|
||||||
&CmndCfgDump, &CmndCfgPeek, &CmndCfgPoke,
|
&CmndCfgDump, &CmndCfgPeek, &CmndCfgPoke,
|
||||||
@ -90,7 +93,10 @@ void (* const DebugCommand[])(void) PROGMEM = {
|
|||||||
&CmndException,
|
&CmndException,
|
||||||
#endif
|
#endif
|
||||||
&CmndFlashDump, &CmndFlashMode, &CmndFreemem, &CmndHelp, &CmndRtcDump, &CmndSetSensor,
|
&CmndFlashDump, &CmndFlashMode, &CmndFreemem, &CmndHelp, &CmndRtcDump, &CmndSetSensor,
|
||||||
&CmndI2cWrite, &CmndI2cRead, &CmndI2cStretch, &CmndI2cClock };
|
#ifdef USE_I2C
|
||||||
|
&CmndI2cWrite, &CmndI2cRead, &CmndI2cStretch, &CmndI2cClock
|
||||||
|
#endif
|
||||||
|
};
|
||||||
|
|
||||||
uint32_t CPU_loops = 0;
|
uint32_t CPU_loops = 0;
|
||||||
uint32_t CPU_last_millis = 0;
|
uint32_t CPU_last_millis = 0;
|
||||||
@ -575,6 +581,7 @@ void CmndFlashDump(void)
|
|||||||
ResponseCmndDone();
|
ResponseCmndDone();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef USE_I2C
|
||||||
void CmndI2cWrite(void)
|
void CmndI2cWrite(void)
|
||||||
{
|
{
|
||||||
// I2cWrite <address>,<data>..
|
// I2cWrite <address>,<data>..
|
||||||
@ -652,6 +659,7 @@ void CmndI2cClock(void)
|
|||||||
}
|
}
|
||||||
ResponseCmndDone();
|
ResponseCmndDone();
|
||||||
}
|
}
|
||||||
|
#endif // USE_I2C
|
||||||
|
|
||||||
/*********************************************************************************************\
|
/*********************************************************************************************\
|
||||||
* Interface
|
* Interface
|
||||||
|
Loading…
x
Reference in New Issue
Block a user