Python LimitlessLED via RF

Check-in [6ec60511f0]
Login

Check-in [6ec60511f0]

Overview
Comment:Send correct CRC for CCT
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 6ec60511f00fa8f9e90b826f7b3c057707812eeb65debfb064cedd3c216c6803
User & Date: rkeene on 2020-04-30 02:38:46.179
Original Comment: More temperature corrections
Other Links: manifest | tags
Context
2020-04-30
03:31
limitlessled_rf v0.9 check-in: 56c42e61c4 user: rkeene tags: 0.9, trunk
02:38
Send correct CRC for CCT check-in: 6ec60511f0 user: rkeene tags: trunk
01:30
More temperature corrections check-in: ba7cf6d824 user: rkeene tags: trunk
Changes
196
197
198
199
200
201
202
203

204
205
206
207
208
209
210
196
197
198
199
200
201
202

203
204
205
206
207
208
209
210







-
+







		button_id = self._config['button_map'][button_name]

		# Compute message body
		body = [zone, button_id, message_id]

		# Compute message trailer
		## Include a CRC, for good measure ?
		crc = 0
		crc = len(header) + len(body) + 1
		for byte in header + body:
			crc = crc + byte
		crc = crc & 0xff
		trailer = [crc]

		message = header + body + trailer