Skip to content

Commit

Permalink
workaround for espressif/esp-idf#15235
Browse files Browse the repository at this point in the history
  • Loading branch information
higaski committed Jan 20, 2025
1 parent e1426fd commit 2b2acc4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/services/ws_zusi_service.dart
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ class WsZusiService implements ZusiService {
(address >> 0) & 0xFF,
];
data.addAll(chunk);
data.addAll(List<int>.filled(263 - 1 - data.length, 0xFF));
data.addAll(List<int>.filled(268 - 1 - data.length, 0xFF));
data.add(crc8(data));
_channel.sink.add(Uint8List.fromList(data));
}
Expand Down
2 changes: 1 addition & 1 deletion lib/widgets/zusi_dialog.dart
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ class _ZusiDialogState extends ConsumerState<ZusiDialog> {
int failCount = 0;
while (i < blocks.length) {
// Number of blocks transmit at once
final n = min(16, blocks.length - i);
final n = min(256, blocks.length - i);
for (var j = 0; j < n; ++j) {
_zusi.writeZpp((i + j) * blockSize, Uint8List.fromList(blocks[i + j]));
}
Expand Down

0 comments on commit 2b2acc4

Please sign in to comment.