I'm sure I'm missing something obvious, but here goes.
The code (which I would expect to print two numbers, one monotonically increasing value and the current results of millis()) refuses to print anything other than zero for the second parameter (it doesn't matter what that second value is):
The output:
What am I doing wrong?
The code (which I would expect to print two numbers, one monotonically increasing value and the current results of millis()) refuses to print anything other than zero for the second parameter (it doesn't matter what that second value is):
Code:
uint64_t val=0;
void setup() {
Serial.begin(115200);
}
void loop() {
uint32_t m = millis();
Serial.printf("%d :: %d\n", val, m);
val++;
}
The output:
Code:
.
.
.
7437093 :: 0
7437094 :: 0
7437095 :: 0
7437096 :: 0
7437097 :: 0
7437098 :: 0
7437099 :: 0
7437100 :: 0
7437101 :: 0
7437102 :: 0
7437103 :: 0
7437104 :: 0
7437105 :: 0
7437106 :: 0
7437107 :: 0
.
.
.
What am I doing wrong?