mirror of https://github.com/arendst/Tasmota.git
Update support.ino
This commit is contained in:
parent
400fa10594
commit
91d2324cfb
|
@ -117,6 +117,17 @@ String GetResetReason(void)
|
||||||
* Miscellaneous
|
* Miscellaneous
|
||||||
\*********************************************************************************************/
|
\*********************************************************************************************/
|
||||||
|
|
||||||
|
#define BYTE_TO_BINARY_PATTERN "%c%c%c%c%c%c%c%c"
|
||||||
|
#define BYTE_TO_BINARY(byte) \
|
||||||
|
(byte & 0x80 ? '1' : '0'), \
|
||||||
|
(byte & 0x40 ? '1' : '0'), \
|
||||||
|
(byte & 0x20 ? '1' : '0'), \
|
||||||
|
(byte & 0x10 ? '1' : '0'), \
|
||||||
|
(byte & 0x08 ? '1' : '0'), \
|
||||||
|
(byte & 0x04 ? '1' : '0'), \
|
||||||
|
(byte & 0x02 ? '1' : '0'), \
|
||||||
|
(byte & 0x01 ? '1' : '0')
|
||||||
|
|
||||||
// Get span until single character in string
|
// Get span until single character in string
|
||||||
size_t strchrspn(const char *str1, int character)
|
size_t strchrspn(const char *str1, int character)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue