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
|
||||
\*********************************************************************************************/
|
||||
|
||||
#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
|
||||
size_t strchrspn(const char *str1, int character)
|
||||
{
|
||||
|
@ -1961,4 +1972,4 @@ String Decompress(const char * compressed, size_t uncompressed_size) {
|
|||
return content;
|
||||
}
|
||||
|
||||
#endif // USE_UNISHOX_COMPRESSION
|
||||
#endif // USE_UNISHOX_COMPRESSION
|
||||
|
|
Loading…
Reference in New Issue