mirror of https://github.com/arendst/Tasmota.git
ACER - don't log the checksum, it is for NEC only
This commit is contained in:
parent
82468f9168
commit
5cdafaa46a
|
@ -154,12 +154,18 @@ projector_ctrl_write(struct projector_ctrl_softc_s *sc, const uint8_t *bytes, co
|
||||||
}
|
}
|
||||||
#ifdef USE_PROJECTOR_CTRL_NEC
|
#ifdef USE_PROJECTOR_CTRL_NEC
|
||||||
serial->write(cksum);
|
serial->write(cksum);
|
||||||
#endif
|
|
||||||
#ifdef DEBUG_PROJECTOR_CTRL
|
#ifdef DEBUG_PROJECTOR_CTRL
|
||||||
char hex_b[(len + 1) * 2];
|
char hex_b[(len + 1) * 2];
|
||||||
AddLog_P(LOG_LEVEL_DEBUG,PSTR(PROJECTOR_CTRL_LOGNAME ": RAW bytes %s %02x"),
|
AddLog_P(LOG_LEVEL_DEBUG,PSTR(PROJECTOR_CTRL_LOGNAME ": RAW bytes %s %02x"),
|
||||||
ToHex_P((uint8_t *)bytes, len, hex_b, sizeof(hex_b)), cksum);
|
ToHex_P((uint8_t *)bytes, len, hex_b, sizeof(hex_b)), cksum);
|
||||||
#endif //DEBUG_PROJECTOR_CTRL
|
#endif //DEBUG_PROJECTOR_CTRL
|
||||||
|
#else //!USE_PROJECTOR_CTRL_NEC
|
||||||
|
#ifdef DEBUG_PROJECTOR_CTRL
|
||||||
|
char hex_b[(len + 1) * 2];
|
||||||
|
AddLog_P(LOG_LEVEL_DEBUG,PSTR(PROJECTOR_CTRL_LOGNAME ": RAW bytes %s"),
|
||||||
|
ToHex_P((uint8_t *)bytes, len, hex_b, sizeof(hex_b)));
|
||||||
|
#endif //DEBUG_PROJECTOR_CTRL
|
||||||
|
#endif //!USE_PROJECTOR_CTRL_NEC
|
||||||
|
|
||||||
serial->flush();
|
serial->flush();
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue