Python updated

pull/29/head
erikkaashoek 4 years ago
parent 31eb02efbb
commit d85fb1ff7a

@ -433,8 +433,10 @@ calculate:
c = c - '0'; c = c - '0';
if (c >= 'A' - '0') c = (c&(~0x20)) - ('A' - '0') + 10; if (c >= 'A' - '0') c = (c&(~0x20)) - ('A' - '0') + 10;
if (c >= radix) break; if (c >= radix) break;
if (d<=0) d--; if (value < (~(freq_t)0)/radix) {
value = value * radix + c; if (d<=0) d--;
value = value * radix + c;
}
} }
if (d == 1) if (d == 1)
d = 0; d = 0;

@ -18,7 +18,7 @@
*/ */
#include "ch.h" #include "ch.h"
//#ifdef TINYSA_F303 #ifdef TINYSA_F303
#ifdef TINYSA_F072 #ifdef TINYSA_F072
#error "Remove comment for #ifdef TINYSA_F303" #error "Remove comment for #ifdef TINYSA_F303"
#endif #endif
@ -26,7 +26,7 @@
#define TINYSA4 #define TINYSA4
#endif #endif
#define TINYSA4_PROTO #define TINYSA4_PROTO
//#endif #endif
#ifdef TINYSA_F072 #ifdef TINYSA_F072
#ifdef TINYSA_F303 #ifdef TINYSA_F303

File diff suppressed because one or more lines are too long

@ -376,10 +376,11 @@ if __name__ == '__main__':
nv = NanoVNA(opt.device or getport()) nv = NanoVNA(opt.device or getport())
if opt.command: if opt.command:
print(opt.command)
for c in opt.command: for c in opt.command:
nv.send_command(c + "\r") nv.send_command(c + "\r")
data = nv.fetch_data() data = nv.fetch_data()
print(data); print(data)
if opt.capture: if opt.capture:
print("capturing...") print("capturing...")

Loading…
Cancel
Save

Powered by TurnKey Linux.