-
Notifications
You must be signed in to change notification settings - Fork 7.7k
Commit c6517e4
refactor(ble): Simplify setValue() for primitive types
ESP32 is little-endian architecture, so the code that filled
temporary arrays created from integers basically did nothing.
Pass primitives as 'buffers' to generic `setValue()` instead.
Also use sizeof() instead of hardcoded sizes as the argument.1 parent 5653eb6 commit c6517e4
1 file changed
+5
-20
lines changedLines changed: 5 additions & 20 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
376 | 376 |
| |
377 | 377 |
| |
378 | 378 |
| |
379 | - | ||
380 | - | ||
381 | - | ||
382 | - | ||
379 | + | ||
383 | 380 |
| |
384 | 381 |
| |
385 | 382 |
| |
386 | - | ||
387 | - | ||
388 | - | ||
389 | - | ||
390 | - | ||
391 | - | ||
383 | + | ||
392 | 384 |
| |
393 | 385 |
| |
394 | 386 |
| |
395 | - | ||
396 | - | ||
397 | - | ||
398 | - | ||
399 | - | ||
400 | - | ||
387 | + | ||
401 | 388 |
| |
402 | 389 |
| |
403 | 390 |
| |
404 | - | ||
405 | - | ||
391 | + | ||
406 | 392 |
| |
407 | 393 |
| |
408 | 394 |
| |
409 | - | ||
410 | - | ||
395 | + | ||
411 | 396 |
| |
412 | 397 |
| |
413 | 398 |
| |
|
0 commit comments