Skip to content

MAX_CLOCK_ERROR not defined #23

@jpmeijers

Description

@jpmeijers

Using the Arduino basicmac-otaa example, if I enable line 225, which reads as follows:
LMIC_setClockError(MAX_CLOCK_ERROR * 10 / 100);

I get the following error:

/tmp/arduino_modified_sketch_358454/basicmac-otaa.ino: In function 'void setup()':
basicmac-otaa:225:24: error: 'MAX_CLOCK_ERROR' was not declared in this scope
     LMIC_setClockError(MAX_CLOCK_ERROR * 10 / 100);
                        ^~~~~~~~~~~~~~~
basicmac-otaa:225:5: error: 'LMIC_setClockError' was not declared in this scope
     LMIC_setClockError(MAX_CLOCK_ERROR * 10 / 100);
     ^~~~~~~~~~~~~~~~~~
/tmp/arduino_modified_sketch_358454/basicmac-otaa.ino:225:5: note: suggested alternative: 'LMIC_setClassC'
     LMIC_setClockError(MAX_CLOCK_ERROR * 10 / 100);
     ^~~~~~~~~~~~~~~~~~
     LMIC_setClassC
Using library BasicMAC at version 2.2.1 in folder: /home/jpmeijers/Arduino/libraries/BasicMAC 
Using library SPI at version 1.0 in folder: /home/jpmeijers/.arduino15/packages/MightyCore/hardware/avr/2.0.5/libraries/SPI 
exit status 1
'MAX_CLOCK_ERROR' was not declared in this scope

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions