Skip to content

Commit

Permalink
...fix ZUSI packet length?
Browse files Browse the repository at this point in the history
  • Loading branch information
higaski committed Jan 19, 2025
1 parent 705efd0 commit 3e8b0b9
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/services/ws_zusi_service.dart
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,7 @@ class WsZusiService implements ZusiService {
(address >> 0) & 0xFF,
];
data.addAll(chunk);

// this should normally be zero?
// debugPrint('${268 - 1 - data.length}'); // TODO remove

data.addAll(List<int>.filled(268 - 1 - data.length, 0xFF));
data.addAll(List<int>.filled(263 - 1 - data.length, 0xFF));
data.add(crc8(data));
_channel.sink.add(Uint8List.fromList(data));
}
Expand Down

0 comments on commit 3e8b0b9

Please sign in to comment.