changeset 3991:813a5cd44100

driver/sx1276: fixed bytecode warning
author Alexandre Becoulet <alexandre.becoulet@free.fr>
date Thu, 12 Jul 2018 10:25:57 +0200
parents 09429b504f22
children 44374336ca61
files drivers/rfpacket/sx127x/sx127x_spi.bc
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/drivers/rfpacket/sx127x/sx127x_spi.bc	Thu Jul 12 10:24:24 2018 +0200
+++ b/drivers/rfpacket/sx127x/sx127x_spi.bc	Thu Jul 12 10:25:57 2018 +0200
@@ -325,7 +325,7 @@
         .output %7 data
         /* Read RSSI */
         cst8                    %tmp,            SX1276_REG_RSSIVALUE
-        pack8                   %tmp,            2
+        pack16le                %tmp,            1,      2
         spi_swp                 %tmp,            %tmp,   2,      CS_PULSE
         unpack8                 %tmp,            2
         ret                     %link